supports() public method

This check does not need to look if the specific instance can be resolved to a route, only whether the router can generate routes from objects of this class.
public supports ( mixed $name ) : boolean
$name mixed The route name or route object
return boolean
 /**
  * @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));
 }