1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-07 09:10:03 +01:00

detect phpunit

This commit is contained in:
Taylor Otwell
2016-05-08 23:33:32 -05:00
parent b97e65f8bf
commit d933bd65c0

View File

@@ -3,7 +3,7 @@
/** /**
* Check the system's compatibility with Valet. * 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) { if (PHP_OS != 'Darwin' && ! $inTestingEnvironment) {
echo 'Valet only supports the Mac operating system.'.PHP_EOL; echo 'Valet only supports the Mac operating system.'.PHP_EOL;