public function DynamicRouterTest::testSupports

File

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

Class

DynamicRouterTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

public function testSupports() {
  $name = 'foo/bar';
  $this->generator
    ->expects($this
    ->once())
    ->method('supports')
    ->with($this
    ->equalTo($name))
    ->will($this
    ->returnValue(true));
  $this
    ->assertTrue($this->router
    ->supports($name));
}