public function RouteTest::testLegacyPattern in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/routing/Tests/RouteTest.php \Symfony\Component\Routing\Tests\RouteTest::testLegacyPattern()
@group legacy
File
- vendor/
symfony/ routing/ Tests/ RouteTest.php, line 230
Class
Namespace
Symfony\Component\Routing\TestsCode
public function testLegacyPattern() {
$route = new Route('/{foo}');
$this
->assertEquals('/{foo}', $route
->getPattern());
$route
->setPattern('/bar');
$this
->assertEquals('/bar', $route
->getPattern());
}