Skip to content

Commit 9e7a1dc

Browse files
committed
tests: fixed compatibility with PHP 7.1
https://wiki.php.net/rfc/invalid_strings_in_arithmetic
1 parent 05aa911 commit 9e7a1dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Database/Table/Selection.page().phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ test(function () use ($context) { //less items than $itemsPerPage
6060

6161
// SQL Server throw PDOException 'The number of rows provided for a FETCH clause must be greater then zero.'
6262
if ($driverName !== 'sqlsrv') {
63-
test(function () use ($context) { //invalid params
63+
Assert::error(function () use ($context) { //invalid params
6464
$tags = $context->table('tag')->page('foo', 'bar');
6565
Assert::equal(0, count($tags)); //no items
66-
});
66+
}, PHP_VERSION_ID >= 70100 ? [[E_WARNING, 'A non-numeric value encountered']] : []);
6767
}

0 commit comments

Comments
 (0)