public function ClientTest::testGetServerParameter 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::testGetServerParameter()
File
- vendor/
symfony/ browser-kit/ Tests/ ClientTest.php, line 584
Class
Namespace
Symfony\Component\BrowserKit\TestsCode
public function testGetServerParameter() {
$client = new TestClient();
$this
->assertEquals('localhost', $client
->getServerParameter('HTTP_HOST'));
$this
->assertEquals('Symfony2 BrowserKit', $client
->getServerParameter('HTTP_USER_AGENT'));
$this
->assertEquals('testvalue', $client
->getServerParameter('testkey', 'testvalue'));
}