public function testGetExceptionByCode() { $this->assertFalse($this->_response->getExceptionByCode(200)); $this->_response->setException(new Zend_Controller_Response_Exception('FooBar', 200)); $exceptions = $this->_response->getExceptionByCode(200); $this->assertTrue(0 < count($exceptions)); $this->assertEquals(200, $exceptions[0]->getCode()); }