You are here

public function RouteTest::testLegacyPattern in Zircon Profile 8.0

Same name and namespace in other branches
  1. 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

RouteTest

Namespace

Symfony\Component\Routing\Tests

Code

public function testLegacyPattern() {
  $route = new Route('/{foo}');
  $this
    ->assertEquals('/{foo}', $route
    ->getPattern());
  $route
    ->setPattern('/bar');
  $this
    ->assertEquals('/bar', $route
    ->getPattern());
}