예제 #1
0
 public function _handleFatalError()
 {
     $lastError = error_get_last();
     if (!is_array($lastError) || !$this->_bootLogger->isEnabled()) {
         //no error or logging not enabled
         return;
     }
     if (!class_exists('tubepress_internal_boot_helper_FatalErrorHandler', false)) {
         require __DIR__ . '/helper/FatalErrorHandler.php';
     }
     $handler = new tubepress_internal_boot_helper_FatalErrorHandler();
     $handler->onFatalError($this->_bootLogger, $lastError);
 }
예제 #2
0
 public function testDebug()
 {
     $this->expectOutputRegex('~some message~');
     $this->_sut->debug('some message', array('foo' => 'bar'));
     $this->_sut->handleBootException(new RuntimeException());
 }