/**
  * @covers  \Request\Service::isTerminalRequest
  * @depends testCreateService
  */
 public function testIsTerminalRequest()
 {
     $this->assertTrue(\Request\Service::isTerminalRequest());
 }
 /**
  * Show error page after non-recoverable error
  *
  * @param string $error
  * @param int $code
  * @param string $trace
  * @return void
  */
 public static function showError($error, $code, $trace = '')
 {
     if ($code != self::ERROR_404) {
         $code = self::ERROR_500;
     }
     $view = new View('Plugin/' . 'error_' . $code);
     $view->setLayout('error');
     $view->setVariable('error', $error);
     $view->setVariable('trace', $trace);
     $view->setTerminal(\Request\Service::isTerminalRequest());
     echo $view->dispatch();
 }