示例#1
0
 public function testGetHeaders()
 {
     $server = new Zend_Rest_Server();
     $server->setClass('Zend_Rest_Server_Test2');
     ob_start();
     $server->handle(array('method' => 'test2ThrowException'));
     $result = ob_get_clean();
     $headers = $server->getHeaders();
     $this->assertContains('HTTP/1.0 400 Bad Request', $headers);
 }