Exemple #1
0
 public function testAddContentDecoratorPersistsDecorators()
 {
     $separator = new ContentDecorator\Separator();
     $this->_response->addContentDecorator($separator);
     $decorators = $this->_response->getContentDecorators();
     $this->assertArrayHasKey('separator', $decorators);
     $this->assertContains($separator, $decorators);
 }
Exemple #2
0
 public function testAddContentDecoratorPersistsDecorators()
 {
     $separator = new Zend_Tool_Framework_Client_Response_ContentDecorator_Separator();
     $this->_response->addContentDecorator($separator);
     $decorators = $this->_response->getContentDecorators();
     $this->assertArrayHasKey('separator', $decorators);
     $this->assertContains($separator, $decorators);
 }