Exemplo n.º 1
0
 public function testClearRawHeaders()
 {
     $this->_response->setRawHeader('HTTP/1.0 404 Not Found');
     $headers = $this->_response->getRawHeaders();
     $this->assertContains('HTTP/1.0 404 Not Found', $headers);
     $this->_response->clearRawHeaders();
     $headers = $this->_response->getRawHeaders();
     $this->assertTrue(empty($headers));
 }