You are here

public function RequestContextTest::testHost in Zircon Profile 8.0

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

File

vendor/symfony/routing/Tests/RequestContextTest.php, line 118

Class

RequestContextTest

Namespace

Symfony\Component\Routing\Tests

Code

public function testHost() {
  $requestContext = new RequestContext();
  $requestContext
    ->setHost('eXampLe.com');
  $this
    ->assertSame('example.com', $requestContext
    ->getHost());
}