mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 00:40:06 +01:00
Allows Valet to run under PHP 5.5 (#57)
* Allows for valet to run under PHP 5.5 as well. Add checks for php55 to the mix. * Allows for valet to run under PHP 5.5 as well. Add checks for php55 to the mix. * Update .travis.yml * Update PhpFpm.php * Add tests for php55
This commit is contained in:
committed by
Taylor Otwell
parent
0139d506f5
commit
e714082d50
@@ -68,16 +68,19 @@ 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')->once()->with('php70')->andReturn(true);
|
||||
$brew->shouldReceive('installed')->with('php56')->andReturn(true);
|
||||
$brew->shouldReceive('installed')->with('php55')->andReturn(true);
|
||||
$this->assertTrue($brew->hasInstalledPhp());
|
||||
|
||||
$brew = Mockery::mock(Brew::class.'[installed]', [new CommandLine, new Filesystem]);
|
||||
$brew->shouldReceive('installed')->once()->with('php70')->andReturn(true);
|
||||
$brew->shouldReceive('installed')->with('php56')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->with('php55')->andReturn(false);
|
||||
$this->assertTrue($brew->hasInstalledPhp());
|
||||
|
||||
$brew = Mockery::mock(Brew::class.'[installed]', [new CommandLine, new Filesystem]);
|
||||
$brew->shouldReceive('installed')->once()->with('php70')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->once()->with('php56')->andReturn(false);
|
||||
$brew->shouldReceive('installed')->once()->with('php55')->andReturn(false);
|
||||
$this->assertFalse($brew->hasInstalledPhp());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user