You are here

public function RouteTest::testHost in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Tests/RouteTest.php \Symfony\Component\Routing\Tests\RouteTest::testHost()

File

vendor/symfony/routing/Tests/RouteTest.php, line 145

Class

RouteTest

Namespace

Symfony\Component\Routing\Tests

Code

public function testHost() {
  $route = new Route('/');
  $route
    ->setHost('{locale}.example.net');
  $this
    ->assertEquals('{locale}.example.net', $route
    ->getHost(), '->setHost() sets the host pattern');
}