1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00

change to preg replace instead of sed

This commit is contained in:
Taylor Otwell
2016-05-08 23:50:01 -05:00
parent e25be02c69
commit 677ff7ae5b
3 changed files with 12 additions and 7 deletions

View File

@@ -85,8 +85,8 @@ public function test_has_installed_php_indicates_if_php_is_installed_via_brew()
public function test_tap_taps_the_given_homebrew_repository()
{
$cli = Mockery::mock(CommandLine::class);
$cli->shouldReceive('passthru')->once()->with('sudo -u Taylor brew tap php70');
$cli->shouldReceive('passthru')->once()->with('sudo -u Taylor brew tap php56');
$cli->shouldReceive('passthru')->once()->with('sudo -u '.user().' brew tap php70');
$cli->shouldReceive('passthru')->once()->with('sudo -u '.user().' brew tap php56');
swap(CommandLine::class, $cli);
resolve(Brew::class)->tap('php70', 'php56');
}