-
Notifications
You must be signed in to change notification settings - Fork 701
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
StyleCI & Tests updates for Multiple PHP Versions
- Loading branch information
1 parent
5c865d3
commit 3d73ef6
Showing
4 changed files
with
24 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -532,7 +532,6 @@ | |
info(sprintf('Valet is now using %s.', $newVersion).PHP_EOL); | ||
info('Note that you might need to run <comment>composer global update</comment> if your PHP version change affects the dependencies of global packages required by Composer.'); | ||
} | ||
|
||
})->descriptions('Change the version of PHP used by valet', [ | ||
'phpVersion' => 'The PHP version you want to use, e.g [email protected]', | ||
'--site' => 'Isolate PHP version of a specific valet site. e.g: --site=site.test', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,6 +115,7 @@ public function test_use_version_if_already_linked_php_will_unlink_before_instal | |
resolve(Filesystem::class), | ||
])->makePartial(); | ||
$phpFpmMock->shouldReceive('install'); | ||
$phpFpmMock->shouldReceive('updateConfigurationForGlobalUpdate'); | ||
|
||
$brewMock->shouldReceive('supportedPhpVersions')->andReturn(collect([ | ||
'[email protected]', | ||
|
@@ -138,7 +139,7 @@ public function test_use_version_if_already_linked_php_will_unlink_before_instal | |
|
||
class StubForUpdatingFpmConfigFiles extends PhpFpm | ||
{ | ||
public function fpmConfigPath() | ||
public function fpmConfigPath($phpVersion = null) | ||
{ | ||
return __DIR__.'/output/fpm.conf'; | ||
} | ||
|