Skip to content

Commit cf6d72c

Browse files
[Routing] fix tests
1 parent 433201e commit cf6d72c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Loader/ObjectRouteLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function getBadResourceStrings()
9292

9393
public function testExceptionOnNoObjectReturned()
9494
{
95-
$this->expectException('LogicException');
95+
$this->expectException(\TypeError::class);
9696
$loader = new TestObjectRouteLoader();
9797
$loader->loaderMap = ['my_service' => 'NOT_AN_OBJECT'];
9898
$loader->load('my_service::method');

0 commit comments

Comments
 (0)