From d933bd65c044bf404566d6e3fe5241635ce33424 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 8 May 2016 23:33:32 -0500 Subject: [PATCH] detect phpunit --- includes/compatibility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/compatibility.php b/includes/compatibility.php index 6ad572e..79b0e44 100644 --- a/includes/compatibility.php +++ b/includes/compatibility.php @@ -3,7 +3,7 @@ /** * Check the system's compatibility with Valet. */ -$inTestingEnvironment = isset($_ENV['APP_ENV']) && $_ENV['APP_ENV'] == 'testing'; +$inTestingEnvironment = strpos($_SERVER['SCRIPT_NAME'], 'phpunit') !== false; if (PHP_OS != 'Darwin' && ! $inTestingEnvironment) { echo 'Valet only supports the Mac operating system.'.PHP_EOL;