mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
30 lines
738 B
PowerShell
30 lines
738 B
PowerShell
Describe "PHP" {
|
|
|
|
[array]$testCases = (Get-ToolsetContent).php.versions | ForEach-Object { @{phpVersion = $_} }
|
|
|
|
It "php <phpVersion>" -TestCases $testCases {
|
|
param (
|
|
[string] $phpVersion
|
|
)
|
|
|
|
"php$phpVersion --version" | Should -ReturnZeroExitCode
|
|
"php-config$phpVersion --version" | Should -ReturnZeroExitCode
|
|
"phpize$phpVersion --version" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "PHPUnit" {
|
|
"phpunit --version" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "Composer" {
|
|
"composer --version" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "Pear" {
|
|
"pear" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "Pecl" {
|
|
"pecl" | Should -ReturnZeroExitCode
|
|
}
|
|
} |