public function testNoCache() { $response = new Response(); // Make sure the headers are initially empty $this->assertEmpty($response->headers()->all()); $response->noCache(); $this->assertContains('no-cache', $response->headers()->all()); }