예제 #1
0
파일: HttpTest.php 프로젝트: lortnus/zf1
 public function testGetExceptionByMessage()
 {
     $this->assertFalse($this->_response->getExceptionByMessage('FooBar'));
     $this->_response->setException(new Zend_Controller_Response_Exception('FooBar'));
     $exceptions = $this->_response->getExceptionByMessage('FooBar');
     $this->assertTrue(0 < count($exceptions));
     $this->assertEquals('FooBar', $exceptions[0]->getMessage());
 }