mirror of
https://github.com/laravel/valet.git
synced 2026-02-07 09:10:03 +01:00
detect phpunit
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user