Skip to content

Commit 066186b

Browse files
committed
use ClassName::class syntax
1 parent 43f88cc commit 066186b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if ($driverName !== 'sqlsrv') {
4545
'name' => 'Jon Snow',
4646
'web' => 'http://example.com',
4747
]);
48-
}, '\PDOException');
48+
}, PDOException::class);
4949
}
5050

5151

tests/Database/Table/SqlBuilder.addWhere().phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,5 +240,5 @@ test(function () use ($driverName, $context, $connection, $structure) {
240240

241241
Assert::exception(function () use ($e) {
242242
throw $e->getPrevious();
243-
}, 'LogicException', "Table 'book_tag' does not have a primary key.");
243+
}, LogicException::class, "Table 'book_tag' does not have a primary key.");
244244
});

0 commit comments

Comments
 (0)