Skip to content

Commit 72896fc

Browse files
committed
use ClassName::class syntax
1 parent 94f38d8 commit 72896fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/Http/Session.handler-exceptions.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ $session->setHandler(new ThrowsOnReadHandler);
3434

3535
Assert::exception(function () use ($session) {
3636
$session->start();
37-
}, 'RuntimeException', 'Session can\'t be started for whatever reason!');
37+
}, RuntimeException::class, 'Session can\'t be started for whatever reason!');
3838

3939
Assert::exception(function () use ($session) {
4040
$session->start();
41-
}, 'RuntimeException', 'Session can\'t be started for whatever reason!');
41+
}, RuntimeException::class, 'Session can\'t be started for whatever reason!');
4242

4343
$session->setHandler(new \SessionHandler());
4444
$session->start();

tests/Http/Url.malformedUri.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ require __DIR__ . '/../bootstrap.php';
1313

1414
Assert::exception(function () {
1515
$url = new Url('http:///');
16-
}, 'InvalidArgumentException', "Malformed or unsupported URI 'http:///'.");
16+
}, InvalidArgumentException::class, "Malformed or unsupported URI 'http:///'.");

0 commit comments

Comments
 (0)