You are here

public function RequestTest::testGetHostWithFakeHttpHostValue in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/RequestTest.php \Symfony\Component\HttpFoundation\Tests\RequestTest::testGetHostWithFakeHttpHostValue()

@expectedException \RuntimeException

File

vendor/symfony/http-foundation/Tests/RequestTest.php, line 790

Class

RequestTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testGetHostWithFakeHttpHostValue() {
  $request = new Request();
  $request
    ->initialize(array(), array(), array(), array(), array(), array(
    'HTTP_HOST' => 'www.host.com?query=string',
  ));
  $request
    ->getHost();
}