public function ClientTest::testRequestReferer 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::testRequestReferer()
File
- vendor/
symfony/ browser-kit/ Tests/ ClientTest.php, line 245
Class
Namespace
Symfony\Component\BrowserKit\TestsCode
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');
}