public function DynamicRouterTest::testSupportsNonversatile

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/DynamicRouterTest.php, line 97

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));
}