Files
runner-images-sangeeth/images/win/scripts/Tests/PHP.Tests.ps1
Darii Nurgaleev b47ba413c9 Replace current validates with pester testing approach #3 (#1230)
* Pester Tests Approach implementation.

* changes for netPath
2020-07-17 11:29:03 +03:00

13 lines
351 B
PowerShell

Describe "PHP" {
It "Check <ToolName> in the PATH" -TestCases @(
@{ ToolName = "php" }
@{ ToolName = "composer" }
) {
"$ToolName --version" | Should -ReturnZeroExitCode
}
It "PHP Environment variables is set." {
${env:PHPROOT} | Should -Not -BeNullOrEmpty
${env:PHPROOT} | Should -Exist
}
}