public function ClientTest::testGetRequestWithIpAsHost in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\BrowserKit\TestsCode
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());
}