public function testGetExceptionByType() { $this->assertFalse($this->_response->getExceptionByType('Zend_Controller_Response_Exception')); $this->_response->setException(new Zend_Controller_Response_Exception()); $exceptions = $this->_response->getExceptionByType('Zend_Controller_Response_Exception'); $this->assertTrue(0 < count($exceptions)); $this->assertTrue($exceptions[0] instanceof Zend_Controller_Response_Exception); }