public function ChainRouterTest::testSupport in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony-cmf/routing/Tests/Routing/ChainRouterTest.php \Symfony\Cmf\Component\Routing\Tests\Routing\ChainRouterTest::testSupport()
@expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
File
- vendor/
symfony-cmf/ routing/ Tests/ Routing/ ChainRouterTest.php, line 686
Class
Namespace
Symfony\Cmf\Component\Routing\Tests\RoutingCode
public function testSupport() {
$router = $this
->getMock('Symfony\\Cmf\\Component\\Routing\\Tests\\Routing\\VersatileRouter');
$router
->expects($this
->once())
->method('supports')
->will($this
->returnValue(false));
$router
->expects($this
->never())
->method('generate')
->will($this
->returnValue(false));
$this->router
->add($router);
$this->router
->generate('foobar');
}