You are here

public function ProviderBasedGeneratorTest::testGetRouteDebugMessage 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::testGetRouteDebugMessage()

File

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

Class

ProviderBasedGeneratorTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

public function testGetRouteDebugMessage() {
  $this
    ->assertContains('/some/key', $this->generator
    ->getRouteDebugMessage(new RouteObject()));
  $this
    ->assertContains('/de/test', $this->generator
    ->getRouteDebugMessage(new Route('/de/test')));
  $this
    ->assertContains('/some/route', $this->generator
    ->getRouteDebugMessage('/some/route'));
  $this
    ->assertContains('a:1:{s:10:"route_name";s:7:"example";}', $this->generator
    ->getRouteDebugMessage(array(
    'route_name' => 'example',
  )));
}