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

skip check when testing

This commit is contained in:
Taylor Otwell
2016-05-08 23:20:12 -05:00
parent 0df4108ea2
commit 32853f348a
2 changed files with 5 additions and 2 deletions

View File

@@ -3,7 +3,9 @@
/**
* Check the system's compatibility with Valet.
*/
if (PHP_OS != 'Darwin') {
$inTestingEnvironment = isset($_ENV['APP_ENV']) && $_ENV['APP_ENV'] == 'testing';
if (PHP_OS != 'Darwin' && ! $inTestingEnvironment) {
echo 'Valet only supports the Mac operating system.'.PHP_EOL;
exit(1);
@@ -15,7 +17,7 @@
exit(1);
}
if (exec('which brew') != '/usr/local/bin/brew') {
if (exec('which brew') != '/usr/local/bin/brew' && ! $inTestingEnvironment) {
echo 'Valet requires Brew to be installed on your Mac.';
exit(1);