Esempio n. 1
0
 function testNotModified()
 {
     $response = new Response();
     $response->setHeaders(array("Allow" => "", "Content-Encoding" => "", "Content-Language" => "", "Content-Length" => "", "Content-MD5" => "", "Content-Type" => "", "Last-Modified" => ""));
     $response->notModified();
     $this->assertEquals(304, $response->getStatus());
     $this->assertEmpty($response->getHeaders());
 }