public function PhpMatcherDumperTest::testDump

@dataProvider getRouteCollections

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/Dumper/PhpMatcherDumperTest.php, line 38

Class

PhpMatcherDumperTest

Namespace

Symfony\Component\Routing\Tests\Matcher\Dumper

Code

public function testDump(RouteCollection $collection, $fixture, $options = array()) {
  $basePath = __DIR__ . '/../../Fixtures/dumper/';
  $dumper = new PhpMatcherDumper($collection);
  $this
    ->assertStringEqualsFile($basePath . $fixture, $dumper
    ->dump($options), '->dump() correctly dumps routes as optimized PHP code.');
}