Пример #1
0
 public function testResponseHeadersShouldBeSerializedWhenWritingMessage()
 {
     $this->testResponseShouldAggregateMessageHeaders();
     $this->_response->finalize();
     $response = $this->_response->getResponse();
     $request = new \ZendAmf\Request\StreamRequest();
     $request->initialize($response);
     $headers = $request->getAmfHeaders();
     $this->assertEquals(2, count($headers));
 }