You are here

public function ClientTest::testGetServerParameter 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::testGetServerParameter()

File

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

Class

ClientTest

Namespace

Symfony\Component\BrowserKit\Tests

Code

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'));
}