You are here

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

File

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

Class

ClientTest

Namespace

Symfony\Component\BrowserKit\Tests

Code

public function testRequestReferer() {
  $client = new TestClient();
  $client
    ->request('GET', 'http://www.example.com/foo/foobar');
  $client
    ->request('GET', 'bar');
  $server = $client
    ->getRequest()
    ->getServer();
  $this
    ->assertEquals('http://www.example.com/foo/foobar', $server['HTTP_REFERER'], '->request() sets the referer');
}