public function PhpGeneratorDumperTest::testDumpWithoutRoutes

@expectedException \InvalidArgumentException

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Generator/Dumper/PhpGeneratorDumperTest.php, line 81

Class

PhpGeneratorDumperTest

Namespace

Symfony\Component\Routing\Tests\Generator\Dumper

Code

public function testDumpWithoutRoutes() {
  file_put_contents($this->testTmpFilepath, $this->generatorDumper
    ->dump(array(
    'class' => 'WithoutRoutesUrlGenerator',
  )));
  include $this->testTmpFilepath;
  $projectUrlGenerator = new \WithoutRoutesUrlGenerator(new RequestContext('/app.php'));
  $projectUrlGenerator
    ->generate('Test', array());
}