Skip to content

test: PhpcCliTest regression for phpc run -q/-p (closes #294)#301

Merged
PurHur merged 1 commit into
masterfrom
feat/phpc-run-q-p-tests-294
May 19, 2026
Merged

test: PhpcCliTest regression for phpc run -q/-p (closes #294)#301
PurHur merged 1 commit into
masterfrom
feat/phpc-run-q-p-tests-294

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 19, 2026

Summary

  • Extend PhpcCliTest with phpc run -p POST body coverage, missing-script non-zero exit, and a shared runPhpc helper.
  • Fix examples/001-SimpleWeb/example.php to read $_REQUEST['name'] so POST via -p matches the file’s documented GET-or-POST behavior.

Test plan

  • docker run … script/ci-local.sh --filter PhpcCliTest (via ./script/docker-ci-local.sh)
  • PhpcCliTest + ExamplesCompileTest green in php-compiler:22.04-dev

Closes #294

Made with Cursor

Extend PhpcCliTest with POST body (-p), missing-script exit code, and a
shared runPhpc helper. Use $_REQUEST in 001-SimpleWeb so POST matches the
documented GET-or-POST behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur merged commit 0288933 into master May 19, 2026
1 check failed
@PurHur PurHur deleted the feat/phpc-run-q-p-tests-294 branch May 19, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Testing: PhpcCliTest — phpc run -q/-p web superglobal output regression

1 participant