We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bda71b5 commit 2316ed2Copy full SHA for 2316ed2
1 file changed
tests/01_core.bats
@@ -78,9 +78,10 @@ load test_helper
78
79
@test "phpvm current shows no active version initially" {
80
run phpvm_current
81
- # Accept either "none" (no PHP) or "system" (system PHP exists)
82
- [ "$status" -eq 0 ] || [ "$status" -eq 1 ]
83
- [[ "$output" = "none" ]] || [[ "$output" = "system" ]]
+ # Accept: 0 (managed PHP), 4 (none/not installed), or output "system"
+ # Exit code 4 = PHPVM_EXIT_NOT_INSTALLED (when no PHP found)
+ [ "$status" -eq 0 ] || [ "$status" -eq 4 ]
84
+ [[ "$output" = "none" ]] || [[ "$output" = "system" ]] || [[ "$output" =~ ^[0-9]+\.[0-9]+ ]]
85
}
86
87
@test "find_phpvmrc returns error when no file exists" {
0 commit comments