public function supports($name)
{
return $name instanceof Location || $name === self::URL_ALIAS_ROUTE_NAME;
}
/** * @covers eZ\Publish\Core\MVC\Symfony\Routing\UrlAliasRouter::__construct * @covers eZ\Publish\Core\MVC\Symfony\Routing\UrlAliasRouter::supports * * @dataProvider providerTestSupports */ public function testSupports($routeReference, $isSupported) { $this->assertSame($isSupported, $this->router->supports($routeReference)); }