Ejemplo n.º 1
0
 private function _handleBootException(Exception $e)
 {
     if ($this->_bootLogger->isEnabled()) {
         /**
          * Print everything out, including a stack trace.
          */
         $this->_bootLogger->handleBootException($e);
         $this->_bootLogger->onBootComplete();
     }
     self::$_BOOT_EXCEPTION = $e;
     throw $e;
 }
Ejemplo n.º 2
0
 public function testDebug()
 {
     $this->expectOutputRegex('~some message~');
     $this->_sut->debug('some message', array('foo' => 'bar'));
     $this->_sut->handleBootException(new RuntimeException());
 }