/** * @expectedException Symfony\Component\Routing\Exception\RouteNotFoundException */ public function testGenerate_withUnknownRoute_throwRoutNotFoundException() { $urlGenerator = new UrlGenerator(new RequestContext(), new FileCache(sys_get_temp_dir())); $urlGenerator->generate('foobar'); }
/** * @expectedException Symfony\Component\Routing\Exception\RouteNotFoundException */ public function testGenerate_withUnknownRoute_throwRoutNotFoundException() { $urlGenerator = new UrlGenerator(new RequestContext(), null); $urlGenerator->generate('foobar'); }