Skip to content

Commit

Permalink
tests: fix for PHP 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Oct 18, 2018
1 parent 7ee0c6d commit 032dc02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Database/ResultSet.exceptions.sqlite.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Nette\Database\Helpers::loadFromFile($connection, __DIR__ . "/files/{$driverName

$e = Assert::exception(function () use ($connection) {
$connection->query('SELECT');
}, Nette\Database\DriverException::class, '%a% syntax error', 'HY000');
}, Nette\Database\DriverException::class, '%a% error%a%', 'HY000');

Assert::same(1, $e->getDriverCode());
Assert::same($e->getCode(), $e->getSqlState());
Expand Down

0 comments on commit 032dc02

Please sign in to comment.