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); }
public function testDebug() { $this->expectOutputRegex('~some message~'); $this->_sut->debug('some message', array('foo' => 'bar')); $this->_sut->handleBootException(new RuntimeException()); }