Skip to content

Commit 393d662

Browse files
committed
Fix tests
1 parent 1bf4469 commit 393d662

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

tests/SphinxQL/ConnectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public function testQuote()
201201
$this->assertEquals(0, $this->connection->quote(false));
202202
$this->assertEquals("fo'o'bar", $this->connection->quote(new Expression("fo'o'bar")));
203203
$this->assertEquals(123, $this->connection->quote(123));
204-
$this->assertEquals("12.3", $this->connection->quote(12.3));
204+
$this->assertEquals("12.300000", $this->connection->quote(12.3));
205205
$this->assertEquals("'12.3'", $this->connection->quote('12.3'));
206206
$this->assertEquals("'12'", $this->connection->quote('12'));
207207
}
@@ -210,7 +210,7 @@ public function testQuoteArr()
210210
{
211211
$this->connection->connect();
212212
$this->assertEquals(
213-
array('null', 1, 0, "fo'o'bar", 123, "12.3", "'12.3'", "'12'"),
213+
array('null', 1, 0, "fo'o'bar", 123, "12.300000", "'12.3'", "'12'"),
214214
$this->connection->quoteArr(array(null, true, false, new Expression("fo'o'bar"), 123, 12.3, '12.3', '12'))
215215
);
216216
}

tests/SphinxQL/FacetTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class FacetTest extends \PHPUnit\Framework\TestCase
2929
'title' => 'what is there to do', 'content' => 'we need to create dummy data for tests'),
3030
);
3131

32-
public static function setUpBeforeClass()
32+
public static function setUpBeforeClass(): void
3333
{
3434
$conn = TestUtil::getConnectionDriver();
3535
$conn->setParam('port', 9307);

tests/SphinxQL/MatchBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class MatchBuilderTest extends \PHPUnit\Framework\TestCase
88
{
99
public static $sphinxql = null;
1010

11-
public static function setUpBeforeClass()
11+
public static function setUpBeforeClass(): void
1212
{
1313
$conn = TestUtil::getConnectionDriver();
1414
$conn->setParam('port', 9307);

tests/SphinxQL/MultiResultSetTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class MultiResultSetTest extends \PHPUnit\Framework\TestCase
3434
'title' => 'what is there to do', 'content' => 'we need to create dummy data for tests'),
3535
);
3636

37-
public static function setUpBeforeClass()
37+
public static function setUpBeforeClass(): void
3838
{
3939
$conn = TestUtil::getConnectionDriver();
4040
$conn->setParam('port', 9307);

tests/SphinxQL/PercolateQueriesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class PercolateQueriesTest extends \PHPUnit\Framework\TestCase
1414
public static $conn = null;
1515

1616

17-
public static function setUpBeforeClass()
17+
public static function setUpBeforeClass(): void
1818
{
1919
$conn = TestUtil::getConnectionDriver();
2020
$conn->setParam('port', 9307);

tests/SphinxQL/ResultSetTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ResultSetTest extends \PHPUnit\Framework\TestCase
3131
'title' => 'what is there to do', 'content' => 'we need to create dummy data for tests'),
3232
);
3333

34-
public static function setUpBeforeClass()
34+
public static function setUpBeforeClass(): void
3535
{
3636
$conn = TestUtil::getConnectionDriver();
3737
$conn->setParam('port', 9307);

tests/SphinxQL/SphinxQLTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class SphinxQLTest extends \PHPUnit\Framework\TestCase
3030
'title' => 'what is there to do', 'content' => 'we need to create dummy data for tests'),
3131
);
3232

33-
public static function setUpBeforeClass()
33+
public static function setUpBeforeClass(): void
3434
{
3535
$conn = TestUtil::getConnectionDriver();
3636
$conn->setParam('port', 9307);

0 commit comments

Comments
 (0)