public function testAddContentDecoratorPersistsDecorators() { $separator = new ContentDecorator\Separator(); $this->_response->addContentDecorator($separator); $decorators = $this->_response->getContentDecorators(); $this->assertArrayHasKey('separator', $decorators); $this->assertContains($separator, $decorators); }
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); }