mirror of
https://github.com/laravel/valet.git
synced 2026-02-04 16:10:08 +01:00
test test test
This commit is contained in:
committed by
Matt Stauffer
parent
9d66cb6bbd
commit
adab98dd31
@@ -96,10 +96,12 @@ public function test_has_installed_php_indicates_if_php_is_installed_via_brew()
|
||||
|
||||
$brew = Mockery::mock(Brew::class.'[installed]', [new CommandLine, new Filesystem]);
|
||||
$brew->shouldReceive('installed')->with('php')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php73')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php72')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php71')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php70')->andReturn(true);
|
||||
$brew->shouldReceive('installed')->with('php56')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php@7.3')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php@7.2')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php@7.1')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php@7.0')->andReturn(true);
|
||||
@@ -108,10 +110,12 @@ public function test_has_installed_php_indicates_if_php_is_installed_via_brew()
|
||||
|
||||
$brew = Mockery::mock(Brew::class.'[installed]', [new CommandLine, new Filesystem]);
|
||||
$brew->shouldReceive('installed')->with('php')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php73')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php72')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php71')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php70')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php56')->andReturn(true);
|
||||
$brew->shouldReceive('installed')->with('php@7.3')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php@7.2')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php@7.1')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php@7.0')->andReturn(false);
|
||||
@@ -120,10 +124,12 @@ public function test_has_installed_php_indicates_if_php_is_installed_via_brew()
|
||||
|
||||
$brew = Mockery::mock(Brew::class.'[installed]', [new CommandLine, new Filesystem]);
|
||||
$brew->shouldReceive('installed')->with('php')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php73')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php72')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php71')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php70')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php56')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php@7.3')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php@7.2')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php@7.1')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php@7.0')->andReturn(false);
|
||||
|
||||
Reference in New Issue
Block a user