You are here

public function DynamicRouterTest::testSupports in Zircon Profile 8

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

File

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

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