[Routing] fix tests
This commit is contained in:
parent
6f110581df
commit
698cc6bb3b
@ -92,7 +92,7 @@ class ObjectRouteLoaderTest extends TestCase
|
||||
|
||||
public function testExceptionOnNoObjectReturned()
|
||||
{
|
||||
$this->expectException('LogicException');
|
||||
$this->expectException(\TypeError::class);
|
||||
$loader = new TestObjectRouteLoader();
|
||||
$loader->loaderMap = ['my_service' => 'NOT_AN_OBJECT'];
|
||||
$loader->load('my_service::method');
|
||||
|
Reference in New Issue
Block a user