[macOS] Add PHP to the toolset (#4544)

This commit is contained in:
V-Zabayrachny
2021-11-21 23:11:18 +03:00
committed by GitHub
parent 81d68d49b3
commit be2dc0315b
5 changed files with 17 additions and 4 deletions

View File

@@ -2,7 +2,8 @@
source ~/utils/utils.sh
echo Installing PHP
brew_smart_install "php"
phpVersionToolset=$(get_toolset_value '.php.version')
brew_smart_install "php@${phpVersionToolset}"
echo Installing composer
brew_smart_install "composer"

View File

@@ -6,9 +6,12 @@ Describe "PHP" -Skip:($os.IsMonterey) {
Get-WhichTool "php" | Should -Not -BeLike "/usr/bin/php*"
}
It "PHP version" {
"php --version" | Should -ReturnZeroExitCode
$phpVersionToolset = Get-ToolsetValue 'php.version'
$phpInstalledVersion = php --version | Out-String | Select-String "${phpVersionToolset}"
$phpInstalledVersion | Should -BeLike "PHP ${phpVersionToolset}*"
}
}
Context "Composer" {
It "Composer" {
"composer --version" | Should -ReturnZeroExitCode

View File

@@ -341,6 +341,9 @@
"llvm": {
"version": "13"
},
"php": {
"version": "8.0"
},
"mongodb": {
"version": "5.0"
},

View File

@@ -293,6 +293,9 @@
"llvm": {
"version": "13"
},
"php": {
"version": "8.0"
},
"mongodb": {
"version": "5.0"
},

View File

@@ -191,6 +191,9 @@
"16"
]
},
"php": {
"version": "8.0"
},
"mongodb": {
"version": "5.0"
},