public function testReferer() { $c = new Client($this->request->withHeader('referer', 'http://foo/bar')); $this->assertEquals('http://foo/bar', $c->referer()); }