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. * 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; echo 'Valet only supports the Mac operating system.'.PHP_EOL;
exit(1); exit(1);
@@ -15,7 +17,7 @@
exit(1); 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.'; echo 'Valet requires Brew to be installed on your Mac.';
exit(1); exit(1);

View File

@@ -1,5 +1,6 @@
# Laravel Valet # Laravel Valet
[![Build Status](https://travis-ci.org/laravel/valet.svg)](https://travis-ci.org/laravel/valet)
[![Total Downloads](https://poser.pugx.org/laravel/valet/d/total.svg)](https://packagist.org/packages/laravel/valet) [![Total Downloads](https://poser.pugx.org/laravel/valet/d/total.svg)](https://packagist.org/packages/laravel/valet)
[![Latest Stable Version](https://poser.pugx.org/laravel/valet/v/stable.svg)](https://packagist.org/packages/laravel/valet) [![Latest Stable Version](https://poser.pugx.org/laravel/valet/v/stable.svg)](https://packagist.org/packages/laravel/valet)
[![Latest Unstable Version](https://poser.pugx.org/laravel/valet/v/unstable.svg)](https://packagist.org/packages/laravel/valet) [![Latest Unstable Version](https://poser.pugx.org/laravel/valet/v/unstable.svg)](https://packagist.org/packages/laravel/valet)