Пример #1
0
 /**
  * Determine if we are running unit tests.
  *
  * @return bool 
  * @static 
  */
 public static function runningUnitTests()
 {
     return \Illuminate\Foundation\Application::runningUnitTests();
 }
Пример #2
0
 /**
  * Determine if the application is running unit tests.
  *
  * @return bool
  */
 protected function runningUnitTests()
 {
     return $this->app->runningInConsole() && $this->app->runningUnitTests();
 }