You are here

public function DynamicRouterTest::testSupportsNonversatile in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony-cmf/routing/Tests/Routing/DynamicRouterTest.php \Symfony\Cmf\Component\Routing\Tests\Routing\DynamicRouterTest::testSupportsNonversatile()

File

vendor/symfony-cmf/routing/Tests/Routing/DynamicRouterTest.php, line 116

Class

DynamicRouterTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

public function testSupportsNonversatile() {
  $generator = $this
    ->buildMock('Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface', array(
    'generate',
    'setContext',
    'getContext',
  ));
  $router = new DynamicRouter($this->context, $this->matcher, $generator);
  $this
    ->assertInternalType('string', $router
    ->getRouteDebugMessage('test'));
  $this
    ->assertTrue($router
    ->supports('some string'));
  $this
    ->assertFalse($router
    ->supports($this));
}