@expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
public function testGenerateNotFound() {
$url = '/test';
$name = 'test';
$parameters = array(
'test' => 'value',
);
list($low, $high) = $this
->createRouterMocks();
$high
->expects($this
->once())
->method('generate')
->with($name, $parameters, false)
->will($this
->throwException(new \Symfony\Component\Routing\Exception\RouteNotFoundException()));
$low
->expects($this
->once())
->method('generate')
->with($name, $parameters, false)
->will($this
->throwException(new \Symfony\Component\Routing\Exception\RouteNotFoundException()));
$this->router
->add($low, 10);
$this->router
->add($high, 100);
$result = $this->router
->generate($name, $parameters);
$this
->assertEquals($url, $result);
}