You are here

public function DynamicRouterTest::testGetGenerator in Zircon Profile 8

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

File

vendor/symfony-cmf/routing/Tests/Routing/DynamicRouterTest.php, line 77

Class

DynamicRouterTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

public function testGetGenerator() {
  $this->generator
    ->expects($this
    ->once())
    ->method('setContext')
    ->with($this
    ->equalTo($this->context));
  $generator = $this->router
    ->getGenerator();
  $this
    ->assertInstanceOf('Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface', $generator);
  $this
    ->assertSame($this->generator, $generator);
}