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 ...@@ -666,7 +666,7 @@ class QueryTest extends \PHPUnit_Framework_TestCase
public function testSetAndGetMltFields() public function testSetAndGetMltFields()
{ {
$value = 'name, description'; $value = 'name,description';
$this->query->setMltFields($value); $this->query->setMltFields($value);
$this->assertEquals( $this->assertEquals(
...@@ -787,7 +787,7 @@ class QueryTest extends \PHPUnit_Framework_TestCase ...@@ -787,7 +787,7 @@ class QueryTest extends \PHPUnit_Framework_TestCase
public function testSetAndGetQueryFields() public function testSetAndGetQueryFields()
{ {
$value = 'content, name'; $value = 'content,name';
$this->query->setQueryFields($value); $this->query->setQueryFields($value);
$this->assertEquals( $this->assertEquals(
......
...@@ -42,7 +42,7 @@ class ResultTest extends \PHPUnit_Framework_TestCase ...@@ -42,7 +42,7 @@ class ResultTest extends \PHPUnit_Framework_TestCase
{ {
$client = new Client; $client = new Client;
$query = new Query; $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); $ping = new Result($client, $query, $response);
$this->assertEquals( $this->assertEquals(
......
...@@ -58,7 +58,7 @@ class DisMaxTest extends \PHPUnit_Framework_TestCase ...@@ -58,7 +58,7 @@ class DisMaxTest extends \PHPUnit_Framework_TestCase
'queryphraseslop' => 4, 'queryphraseslop' => 4,
'tie' => 2.1, 'tie' => 2.1,
'boostquery' => 'cat:1^3', '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); $this->disMax->setOptions($options);
...@@ -197,7 +197,7 @@ class DisMaxTest extends \PHPUnit_Framework_TestCase ...@@ -197,7 +197,7 @@ class DisMaxTest extends \PHPUnit_Framework_TestCase
public function testSetAndGetBoostFunctions() 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->disMax->setBoostFunctions($value);
$this->assertEquals( $this->assertEquals(
......
...@@ -62,8 +62,8 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase ...@@ -62,8 +62,8 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase
'queryphraseslop' => 4, 'queryphraseslop' => 4,
'tie' => 2.1, 'tie' => 2.1,
'boostquery' => 'cat:1^3', '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',
'boostfunctionsmult' => 'funcC(arg5, arg6)^4.3 funcD(arg7, arg8)^3.4', 'boostfunctionsmult' => 'funcC(arg5,arg6)^4.3 funcD(arg7,arg8)^3.4',
'userfields' => 'date *_ul', 'userfields' => 'date *_ul',
); );
...@@ -247,7 +247,7 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase ...@@ -247,7 +247,7 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase
public function testSetAndGetBoostFunctions() 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->eDisMax->setBoostFunctions($value);
$this->assertEquals( $this->assertEquals(
...@@ -258,7 +258,7 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase ...@@ -258,7 +258,7 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase
public function testSetAndGetBoostFunctionsMult() 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->eDisMax->setBoostFunctionsMult($value);
$this->assertEquals( $this->assertEquals(
......
...@@ -199,7 +199,7 @@ class HighlightingTest extends \PHPUnit_Framework_TestCase ...@@ -199,7 +199,7 @@ class HighlightingTest extends \PHPUnit_Framework_TestCase
public function testAddsFieldsWithString() public function testAddsFieldsWithString()
{ {
$fields = 'test1, test2'; $fields = 'test1,test2';
$this->hlt->addFields($fields); $this->hlt->addFields($fields);
$this->assertEquals(array('test1', 'test2'), array_keys($this->hlt->getFields())); $this->assertEquals(array('test1', 'test2'), array_keys($this->hlt->getFields()));
......
...@@ -49,7 +49,7 @@ class MoreLikeThisTest extends \PHPUnit_Framework_TestCase ...@@ -49,7 +49,7 @@ class MoreLikeThisTest extends \PHPUnit_Framework_TestCase
public function testConfigMode() public function testConfigMode()
{ {
$options = array( $options = array(
'fields' => 'fieldA, fieldB', 'fields' => 'fieldA,fieldB',
'minimumtermfrequency' => 10, 'minimumtermfrequency' => 10,
'minimumdocumentfrequency' => 2, 'minimumdocumentfrequency' => 2,
'minimumwordlength' => 3, 'minimumwordlength' => 3,
...@@ -57,7 +57,7 @@ class MoreLikeThisTest extends \PHPUnit_Framework_TestCase ...@@ -57,7 +57,7 @@ class MoreLikeThisTest extends \PHPUnit_Framework_TestCase
'maximumqueryterms' => 4, 'maximumqueryterms' => 4,
'maximumnumberoftokens' => 20, 'maximumnumberoftokens' => 20,
'boost' => 1.5, 'boost' => 1.5,
'queryfields' => 'fieldC, fieldD', 'queryfields' => 'fieldC,fieldD',
'count' => 5, 'count' => 5,
); );
...@@ -97,7 +97,7 @@ class MoreLikeThisTest extends \PHPUnit_Framework_TestCase ...@@ -97,7 +97,7 @@ class MoreLikeThisTest extends \PHPUnit_Framework_TestCase
public function testSetAndGetFields() public function testSetAndGetFields()
{ {
$value = 'name, description'; $value = 'name,description';
$this->mlt->setFields($value); $this->mlt->setFields($value);
$this->assertEquals( $this->assertEquals(
...@@ -196,7 +196,7 @@ class MoreLikeThisTest extends \PHPUnit_Framework_TestCase ...@@ -196,7 +196,7 @@ class MoreLikeThisTest extends \PHPUnit_Framework_TestCase
public function testSetAndGetQueryFields() public function testSetAndGetQueryFields()
{ {
$value = 'content, name'; $value = 'content,name';
$this->mlt->setQueryFields($value); $this->mlt->setQueryFields($value);
$this->assertEquals( $this->assertEquals(
......
...@@ -45,9 +45,9 @@ class DisMaxTest extends \PHPUnit_Framework_TestCase ...@@ -45,9 +45,9 @@ class DisMaxTest extends \PHPUnit_Framework_TestCase
$component = new Component(); $component = new Component();
$component->setQueryParser('dummyparser'); $component->setQueryParser('dummyparser');
$component->setQueryAlternative('test'); $component->setQueryAlternative('test');
$component->setQueryFields('content, name'); $component->setQueryFields('content,name');
$component->setMinimumMatch('75%'); $component->setMinimumMatch('75%');
$component->setPhraseFields('content, description'); $component->setPhraseFields('content,description');
$component->setPhraseSlop(1); $component->setPhraseSlop(1);
$component->setQueryPhraseSlop(2); $component->setQueryPhraseSlop(2);
$component->setTie(0.5); $component->setTie(0.5);
...@@ -60,9 +60,9 @@ class DisMaxTest extends \PHPUnit_Framework_TestCase ...@@ -60,9 +60,9 @@ class DisMaxTest extends \PHPUnit_Framework_TestCase
array( array(
'defType' => 'dummyparser', 'defType' => 'dummyparser',
'q.alt' => 'test', 'q.alt' => 'test',
'qf' => 'content, name', 'qf' => 'content,name',
'mm' => '75%', 'mm' => '75%',
'pf' => 'content, description', 'pf' => 'content,description',
'ps' => 1, 'ps' => 1,
'qs' => 2, 'qs' => 2,
'tie' => 0.5, 'tie' => 0.5,
......
...@@ -45,13 +45,13 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase ...@@ -45,13 +45,13 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase
$component = new Component(); $component = new Component();
$component->setQueryParser('dummyparser'); $component->setQueryParser('dummyparser');
$component->setQueryAlternative('test'); $component->setQueryAlternative('test');
$component->setQueryFields('content, name'); $component->setQueryFields('content,name');
$component->setMinimumMatch('75%'); $component->setMinimumMatch('75%');
$component->setPhraseFields('content, description'); $component->setPhraseFields('content,description');
$component->setPhraseSlop(1); $component->setPhraseSlop(1);
$component->setPhraseBigramFields('content, description, category'); $component->setPhraseBigramFields('content,description,category');
$component->setPhraseBigramSlop(4); $component->setPhraseBigramSlop(4);
$component->setPhraseTrigramFields('content2, date, subcategory'); $component->setPhraseTrigramFields('content2,date,subcategory');
$component->setPhraseTrigramSlop(3); $component->setPhraseTrigramSlop(3);
$component->setQueryPhraseSlop(2); $component->setQueryPhraseSlop(2);
$component->setTie(0.5); $component->setTie(0.5);
...@@ -66,13 +66,13 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase ...@@ -66,13 +66,13 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase
array( array(
'defType' => 'dummyparser', 'defType' => 'dummyparser',
'q.alt' => 'test', 'q.alt' => 'test',
'qf' => 'content, name', 'qf' => 'content,name',
'mm' => '75%', 'mm' => '75%',
'pf' => 'content, description', 'pf' => 'content,description',
'ps' => 1, 'ps' => 1,
'pf2' => 'content, description, category', 'pf2' => 'content,description,category',
'ps2' => 4, 'ps2' => 4,
'pf3' => 'content2, date, subcategory', 'pf3' => 'content2,date,subcategory',
'ps3' => 3, 'ps3' => 3,
'qs' => 2, 'qs' => 2,
'tie' => 0.5, '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