public function ChainRouterTest::testMatchNotFound in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony-cmf/routing/Tests/Routing/ChainRouterTest.php \Symfony\Cmf\Component\Routing\Tests\Routing\ChainRouterTest::testMatchNotFound()
@expectedException \Symfony\Component\Routing\Exception\ResourceNotFoundException
File
- vendor/
symfony-cmf/ routing/ Tests/ Routing/ ChainRouterTest.php, line 356
Class
Namespace
Symfony\Cmf\Component\Routing\Tests\RoutingCode
public function testMatchNotFound() {
$url = '/test';
list($low, $high) = $this
->createRouterMocks();
$high
->expects($this
->once())
->method('match')
->with($url)
->will($this
->throwException(new ResourceNotFoundException()));
$low
->expects($this
->once())
->method('match')
->with($url)
->will($this
->throwException(new ResourceNotFoundException()));
$this->router
->add($low, 10);
$this->router
->add($high, 100);
$this->router
->match('/test');
}