You are here

public function RequestContextTest::testPort in Zircon Profile 8

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

File

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

Class

RequestContextTest

Namespace

Symfony\Component\Routing\Tests

Code

public function testPort() {
  $requestContext = new RequestContext();
  $requestContext
    ->setHttpPort('123');
  $requestContext
    ->setHttpsPort('456');
  $this
    ->assertSame(123, $requestContext
    ->getHttpPort());
  $this
    ->assertSame(456, $requestContext
    ->getHttpsPort());
}