Beispiel #1
0
 function testCacheMissedHandling()
 {
     $response = new Response();
     $response->whenCacheMissed(function () use($response) {
         $response->json(array(1, 2, 3));
     });
     $response->cacheMissed();
     $this->assertEquals("application/json", $response->getHeader("Content-Type"));
 }