Skip to content

Testing: ThrowsWeb uncaught HTTP 500 serve smoke (#2200) - #2218

Merged
PurHur merged 1 commit into
masterfrom
agent/throwsweb-uncaught-500-2200
May 25, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/throwsweb-uncaught-500-2200

Conversation

@PurHur

@PurHur PurHur commented May 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add examples/007-ThrowsWeb/uncaught.php fixture that throws outside try/catch
  • Extend examples-web-smoke.sh with curl_expect_500 when THROWSWEB_UNCAUGHT_500_GATE=1
  • Wire opt-in gate into ci-fast.sh, ci-defaults.env, phpc doctor --gates, and docs

Closes #2200.

Test plan

  • THROWSWEB_UNCAUGHT_500_GATE=1 ./script/examples-web-smoke.sh --throws-only (Docker harness)
  • vendor/bin/phpunit --filter ThrowsWebUncaught (unit + live serve curl)
  • vendor/bin/phpunit --filter PhpcDoctorTest::testDoctorGates

Made with Cursor

Add uncaught.php fixture and opt-in THROWSWEB_UNCAUGHT_500_GATE curl
harness so #152 HTTP 500 mapping is exercised alongside caught-path smoke.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit 52ef0d7 into master May 25, 2026
@PurHur
PurHur deleted the agent/throwsweb-uncaught-500-2200 branch May 25, 2026 23:41
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: ThrowsWeb uncaught HTTP 500 serve smoke (presenter negative path)

1 participant