Skip to content

Commit

Permalink
use ClassName::class syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Oct 5, 2015
1 parent 94f38d8 commit 72896fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/Http/Session.handler-exceptions.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ $session->setHandler(new ThrowsOnReadHandler);

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

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

$session->setHandler(new \SessionHandler());
$session->start();
2 changes: 1 addition & 1 deletion tests/Http/Url.malformedUri.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ require __DIR__ . '/../bootstrap.php';

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

0 comments on commit 72896fc

Please sign in to comment.