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