File
 
   - drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/Dumper/ApacheMatcherDumperTest.php, line 63
 
  
  Class
  
  - ApacheMatcherDumperTest 
 
  
  Namespace
  Symfony\Component\Routing\Tests\Matcher\Dumper
Code
private function getRouteCollection() {
  $collection = new RouteCollection();
  
  $collection
    ->add('foo', new Route('/foo/{bar}', array(
    'def' => 'test',
  ), array(
    'bar' => 'baz|symfony',
  )));
  
  $collection
    ->add('foobar', new Route('/foo/{bar}', array(
    'bar' => 'toto',
  )));
  
  $collection
    ->add('bar', new Route('/bar/{foo}', array(), array(
    '_method' => 'GET|head',
  )));
  
  $collection
    ->add('baragain', new Route('/baragain/{foo}', array(), array(
    '_method' => 'get|post',
  )));
  
  $collection
    ->add('baz', new Route('/test/baz'));
  
  $collection
    ->add('baz2', new Route('/test/baz.html'));
  
  $collection
    ->add('baz3', new Route('/test/baz3/'));
  
  $collection
    ->add('baz4', new Route('/test/{foo}/'));
  
  $collection
    ->add('baz5', new Route('/test/{foo}/', array(), array(
    '_method' => 'get',
  )));
  
  $collection
    ->add('baz5unsafe', new Route('/testunsafe/{foo}/', array(), array(
    '_method' => 'post',
  )));
  
  $collection
    ->add('baz6', new Route('/test/baz', array(
    'foo' => 'bar baz',
  )));
  
  $collection
    ->add('baz7', new Route('/te st/baz'));
  return $collection;
}