You are here

public function ChainRouterTest::testGenerateObjectNotFound in Zircon Profile 8

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

Route is an object but no versatile generator around to do the debug message.

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

File

vendor/symfony-cmf/routing/Tests/Routing/ChainRouterTest.php, line 548

Class

ChainRouterTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

public function testGenerateObjectNotFound() {
  $name = new \stdClass();
  $parameters = array(
    'test' => 'value',
  );
  $defaultRouter = $this
    ->getMock('Symfony\\Component\\Routing\\RouterInterface');
  $defaultRouter
    ->expects($this
    ->never())
    ->method('generate');
  $this->router
    ->add($defaultRouter, 200);
  $this->router
    ->generate($name, $parameters);
}