[Routing] fix tests

This commit is contained in:
Nicolas Grekas 2019-11-20 14:44:34 +01:00
parent 6f110581df
commit 698cc6bb3b

View File

@ -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');