You are here

public function ProviderBasedGeneratorTest::testGenerateNotFound in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony-cmf/routing/Tests/Routing/ProviderBasedGeneratorTest.php \Symfony\Cmf\Component\Routing\Tests\Routing\ProviderBasedGeneratorTest::testGenerateNotFound()

@expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException

File

vendor/symfony-cmf/routing/Tests/Routing/ProviderBasedGeneratorTest.php, line 61

Class

ProviderBasedGeneratorTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

public function testGenerateNotFound() {
  $name = 'foo/bar';
  $this->provider
    ->expects($this
    ->once())
    ->method('getRouteByName')
    ->with($name)
    ->will($this
    ->returnValue(null));
  $this->generator
    ->generate($name);
}