Esempio n. 1
0
 public function testResponseShouldAggregateMessageHeaders()
 {
     $this->header1 = new Zend_Amf_Value_MessageHeader('foo', false, 'bar');
     $this->header2 = new Zend_Amf_Value_MessageHeader('bar', true, 'baz');
     $this->_response->addAmfHeader($this->header1)->addAmfHeader($this->header2);
     $headers = $this->_response->getAmfHeaders();
     $this->assertEquals(2, count($headers));
     $this->assertContains($this->header1, $headers);
     $this->assertContains($this->header2, $headers);
 }