mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix codeception throwing wrong class of exception in PHP 8.0
This commit is contained in:
parent
7f6e020d97
commit
0a14aaa3ba
1 changed files with 2 additions and 2 deletions
|
|
@ -516,14 +516,14 @@ class DBQueryParserTest extends \Codeception\TestCase\Test
|
|||
$this->assertEquals('UPDATE `rx_documents` SET `user_name` = NULL, `nick_name` = ? WHERE `document_srl` = ?', $sql);
|
||||
$this->assertEquals(['TEST', 1234], $query->getQueryParams());
|
||||
|
||||
$this->tester->expectThrowable(\Rhymix\Framework\Exceptions\QueryError::class, function() use($query) {
|
||||
$this->tester->expectThrowable('Exception', function() use($query) {
|
||||
$query->getQueryString('rx_', array(
|
||||
'nick_name' => new \Rhymix\Framework\Parsers\DBQuery\NullValue,
|
||||
'document_srl' => 1234,
|
||||
));
|
||||
});
|
||||
|
||||
$this->tester->expectThrowable(\Rhymix\Framework\Exceptions\QueryError::class, function() use($query) {
|
||||
$this->tester->expectThrowable('Exception', function() use($query) {
|
||||
$query->getQueryString('rx_', array(
|
||||
'nick_name' => null,
|
||||
'document_srl' => 1234,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue