public function testLoadWithRoute() {
$loader = new PhpFileLoader(new FileLocator(array(
__DIR__ . '/../Fixtures',
)));
$routeCollection = $loader
->load('validpattern.php');
$routes = $routeCollection
->all();
$this
->assertEquals(1, count($routes), 'One route is loaded');
$this
->assertContainsOnly('Symfony\\Component\\Routing\\Route', $routes);
$route = $routes['blog_show'];
$this
->assertEquals('RouteCompiler', $route
->getOption('compiler_class'));
}