From 38a6878e210765cb986c9bf32f831684e095e426 Mon Sep 17 00:00:00 2001 From: Sije Harkema Date: Wed, 6 Sep 2017 15:29:18 +0200 Subject: [PATCH] Include runningUnitTests in Application Contract (#21034) resubmit of https://github.com/laravel/framework/pull/21033 , now on master --- src/Illuminate/Contracts/Foundation/Application.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Illuminate/Contracts/Foundation/Application.php b/src/Illuminate/Contracts/Foundation/Application.php index a7d643b15ace..6824f4b84498 100644 --- a/src/Illuminate/Contracts/Foundation/Application.php +++ b/src/Illuminate/Contracts/Foundation/Application.php @@ -33,6 +33,13 @@ public function environment(); * @return bool */ public function runningInConsole(); + + /** + * Determine if we are running unit tests. + * + * @return bool + */ + public function runningUnitTests(); /** * Determine if the application is currently down for maintenance.