You are here

public function ClientTest::testGetRequestWithIpAsHost in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/browser-kit/Tests/ClientTest.php \Symfony\Component\BrowserKit\Tests\ClientTest::testGetRequestWithIpAsHost()

File

vendor/symfony/browser-kit/Tests/ClientTest.php, line 105

Class

ClientTest

Namespace

Symfony\Component\BrowserKit\Tests

Code

public function testGetRequestWithIpAsHost() {
  $client = new TestClient();
  $client
    ->request('GET', 'https://example.com/foo', array(), array(), array(
    'HTTP_HOST' => '127.0.0.1',
  ));
  $this
    ->assertEquals('https://127.0.0.1/foo', $client
    ->getRequest()
    ->getUri());
}