You are here

public function YamlFileLoaderTest::testLoadSpecialRouteName in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/routing/Tests/Loader/YamlFileLoaderTest.php \Symfony\Component\Routing\Tests\Loader\YamlFileLoaderTest::testLoadSpecialRouteName()

File

vendor/symfony/routing/Tests/Loader/YamlFileLoaderTest.php, line 65

Class

YamlFileLoaderTest

Namespace

Symfony\Component\Routing\Tests\Loader

Code

public function testLoadSpecialRouteName() {
  $loader = new YamlFileLoader(new FileLocator(array(
    __DIR__ . '/../Fixtures',
  )));
  $routeCollection = $loader
    ->load('special_route_name.yml');
  $route = $routeCollection
    ->get('#$péß^a|');
  $this
    ->assertInstanceOf('Symfony\\Component\\Routing\\Route', $route);
  $this
    ->assertSame('/true', $route
    ->getPath());
}