[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

@@ -6,12 +6,15 @@ 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
}
}
}
}