public function PhpMatcherDumperTest::testDump in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/routing/Tests/Matcher/Dumper/PhpMatcherDumperTest.php \Symfony\Component\Routing\Tests\Matcher\Dumper\PhpMatcherDumperTest::testDump()
@dataProvider getRouteCollections
File
- vendor/
symfony/ routing/ Tests/ Matcher/ Dumper/ PhpMatcherDumperTest.php, line 41
Class
Namespace
Symfony\Component\Routing\Tests\Matcher\DumperCode
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.');
}