public function testHasVary() { $response = new Response(); $this ->assertFalse($response ->hasVary()); $response ->setVary('User-Agent'); $this ->assertTrue($response ->hasVary()); }