public function UrlGeneratorTest::testGenerateWithoutRoutes

@expectedException Symfony\Component\Routing\Exception\RouteNotFoundException

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php, line 144

Class

UrlGeneratorTest

Namespace

Symfony\Component\Routing\Tests\Generator

Code

public function testGenerateWithoutRoutes() {
  $routes = $this
    ->getRoutes('foo', new Route('/testing/{foo}'));
  $this
    ->getGenerator($routes)
    ->generate('test', array(), true);
}