Пример #1
0
 public function testSendResponseWithExceptions()
 {
     $e = new Exception('Test exception rendering');
     $this->_response->setException($e);
     $this->_response->renderExceptions(true);
     ob_start();
     $this->_response->sendResponse();
     $string = ob_get_clean();
     $this->assertContains('Test exception rendering', $string);
 }