Skip to content

fix: handle missing argv in PHPUnit handler - #34

Merged
kbond merged 1 commit into
zenstruck:1.xfrom
kbond:codex/fix-missing-argv
Nov 26, 2026
Merged

kbond merged 1 commit into
zenstruck:1.xfrom
kbond:codex/fix-missing-argv

Conversation

@kbond

@kbond kbond commented Nov 26, 2026

Copy link
Copy Markdown
Member

When $_SERVER['argv'] is missing, PHPUnit failure formatting masks the assertion failure with a warning or TypeError. Default to an empty argument list so the assertion failure is reported.

Closes #33.

@kbond
kbond merged commit cd051b2 into zenstruck:1.x Nov 26, 2026
13 checks passed
@kbond
kbond deleted the codex/fix-missing-argv branch November 26, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

PHPUnitHandler::isVerbose() assumes $_SERVER['argv'] exists in non-CLI contexts

1 participant