Commit 1dd0597b authored by Dorian Villet's avatar Dorian Villet

[ci skip] tmp commit fixing part of unwanted changes to tests data.

parent 48d685c9
......@@ -666,7 +666,7 @@ class QueryTest extends \PHPUnit_Framework_TestCase
public function testSetAndGetMltFields()
{
$value = 'name, description';
$value = 'name,description';
$this->query->setMltFields($value);
$this->assertEquals(
......@@ -787,7 +787,7 @@ class QueryTest extends \PHPUnit_Framework_TestCase
public function testSetAndGetQueryFields()
{
$value = 'content, name';
$value = 'content,name';
$this->query->setQueryFields($value);
$this->assertEquals(
......
......@@ -42,7 +42,7 @@ class ResultTest extends \PHPUnit_Framework_TestCase
{
$client = new Client;
$query = new Query;
$response = new Response('{"responseHeader":{"status":1, "QTime":12}}', array('HTTP 1.1 200 OK'));
$response = new Response('{"responseHeader":{"status":1,"QTime":12}}', array('HTTP 1.1 200 OK'));
$ping = new Result($client, $query, $response);
$this->assertEquals(
......
......@@ -58,7 +58,7 @@ class DisMaxTest extends \PHPUnit_Framework_TestCase
'queryphraseslop' => 4,
'tie' => 2.1,
'boostquery' => 'cat:1^3',
'boostfunctions' => 'funcA(arg1, arg2)^1.2 funcB(arg3, arg4)^2.2',
'boostfunctions' => 'funcA(arg1,arg2)^1.2 funcB(arg3,arg4)^2.2',
);
$this->disMax->setOptions($options);
......@@ -197,7 +197,7 @@ class DisMaxTest extends \PHPUnit_Framework_TestCase
public function testSetAndGetBoostFunctions()
{
$value = 'funcA(arg1, arg2)^1.2 funcB(arg3, arg4)^2.2';
$value = 'funcA(arg1,arg2)^1.2 funcB(arg3,arg4)^2.2';
$this->disMax->setBoostFunctions($value);
$this->assertEquals(
......
......@@ -62,8 +62,8 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase
'queryphraseslop' => 4,
'tie' => 2.1,
'boostquery' => 'cat:1^3',
'boostfunctions' => 'funcA(arg1, arg2)^1.2 funcB(arg3, arg4)^2.2',
'boostfunctionsmult' => 'funcC(arg5, arg6)^4.3 funcD(arg7, arg8)^3.4',
'boostfunctions' => 'funcA(arg1,arg2)^1.2 funcB(arg3,arg4)^2.2',
'boostfunctionsmult' => 'funcC(arg5,arg6)^4.3 funcD(arg7,arg8)^3.4',
'userfields' => 'date *_ul',
);
......@@ -247,7 +247,7 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase
public function testSetAndGetBoostFunctions()
{
$value = 'funcA(arg1, arg2)^1.2 funcB(arg3, arg4)^2.2';
$value = 'funcA(arg1,arg2)^1.2 funcB(arg3,arg4)^2.2';
$this->eDisMax->setBoostFunctions($value);
$this->assertEquals(
......@@ -258,7 +258,7 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase
public function testSetAndGetBoostFunctionsMult()
{
$value = 'funcC(arg5, arg6)^4.3 funcD(arg7, arg8)^3.4';
$value = 'funcC(arg5,arg6)^4.3 funcD(arg7,arg8)^3.4';
$this->eDisMax->setBoostFunctionsMult($value);
$this->assertEquals(
......
......@@ -199,7 +199,7 @@ class HighlightingTest extends \PHPUnit_Framework_TestCase
public function testAddsFieldsWithString()
{
$fields = 'test1, test2';
$fields = 'test1,test2';
$this->hlt->addFields($fields);
$this->assertEquals(array('test1', 'test2'), array_keys($this->hlt->getFields()));
......
......@@ -49,7 +49,7 @@ class MoreLikeThisTest extends \PHPUnit_Framework_TestCase
public function testConfigMode()
{
$options = array(
'fields' => 'fieldA, fieldB',
'fields' => 'fieldA,fieldB',
'minimumtermfrequency' => 10,
'minimumdocumentfrequency' => 2,
'minimumwordlength' => 3,
......@@ -57,7 +57,7 @@ class MoreLikeThisTest extends \PHPUnit_Framework_TestCase
'maximumqueryterms' => 4,
'maximumnumberoftokens' => 20,
'boost' => 1.5,
'queryfields' => 'fieldC, fieldD',
'queryfields' => 'fieldC,fieldD',
'count' => 5,
);
......@@ -97,7 +97,7 @@ class MoreLikeThisTest extends \PHPUnit_Framework_TestCase
public function testSetAndGetFields()
{
$value = 'name, description';
$value = 'name,description';
$this->mlt->setFields($value);
$this->assertEquals(
......@@ -196,7 +196,7 @@ class MoreLikeThisTest extends \PHPUnit_Framework_TestCase
public function testSetAndGetQueryFields()
{
$value = 'content, name';
$value = 'content,name';
$this->mlt->setQueryFields($value);
$this->assertEquals(
......
......@@ -45,9 +45,9 @@ class DisMaxTest extends \PHPUnit_Framework_TestCase
$component = new Component();
$component->setQueryParser('dummyparser');
$component->setQueryAlternative('test');
$component->setQueryFields('content, name');
$component->setQueryFields('content,name');
$component->setMinimumMatch('75%');
$component->setPhraseFields('content, description');
$component->setPhraseFields('content,description');
$component->setPhraseSlop(1);
$component->setQueryPhraseSlop(2);
$component->setTie(0.5);
......@@ -60,9 +60,9 @@ class DisMaxTest extends \PHPUnit_Framework_TestCase
array(
'defType' => 'dummyparser',
'q.alt' => 'test',
'qf' => 'content, name',
'qf' => 'content,name',
'mm' => '75%',
'pf' => 'content, description',
'pf' => 'content,description',
'ps' => 1,
'qs' => 2,
'tie' => 0.5,
......
......@@ -45,13 +45,13 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase
$component = new Component();
$component->setQueryParser('dummyparser');
$component->setQueryAlternative('test');
$component->setQueryFields('content, name');
$component->setQueryFields('content,name');
$component->setMinimumMatch('75%');
$component->setPhraseFields('content, description');
$component->setPhraseFields('content,description');
$component->setPhraseSlop(1);
$component->setPhraseBigramFields('content, description, category');
$component->setPhraseBigramFields('content,description,category');
$component->setPhraseBigramSlop(4);
$component->setPhraseTrigramFields('content2, date, subcategory');
$component->setPhraseTrigramFields('content2,date,subcategory');
$component->setPhraseTrigramSlop(3);
$component->setQueryPhraseSlop(2);
$component->setTie(0.5);
......@@ -66,13 +66,13 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase
array(
'defType' => 'dummyparser',
'q.alt' => 'test',
'qf' => 'content, name',
'qf' => 'content,name',
'mm' => '75%',
'pf' => 'content, description',
'pf' => 'content,description',
'ps' => 1,
'pf2' => 'content, description, category',
'pf2' => 'content,description,category',
'ps2' => 4,
'pf3' => 'content2, date, subcategory',
'pf3' => 'content2,date,subcategory',
'ps3' => 3,
'qs' => 2,
'tie' => 0.5,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment