Problem
#298 ✅ added script/examples-web-smoke.sh for 001-SimpleWeb, 002-StaticWeb, and 004-ApiJson. There is no automated curl harness for the north-star app examples/003-MiniWebApp/ once VM serve is unblocked (#67).
Goal
Extend script/examples-web-smoke.sh (or a subcommand) to curl MiniWebApp routes:
| Request |
Expected needle |
GET /?route=home |
home template marker |
GET /?route=hello&name=Dev |
greeting |
POST /?route=contact |
thank-you (#248) |
GET /?route=api/status |
JSON (#61) |
Later: PATH_INFO URLs when #210 migrates off ?route=; AOT mode via phpc serve --aot when #454 flips green.
Scope
Acceptance criteria
./script/examples-web-smoke.sh --miniwebapp # or default when lint green
Returns 0 against phpc serve 127.0.0.1:8080 examples/003-MiniWebApp after #67.
Verification (local / Docker only)
docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev ./script/examples-web-smoke.sh
No .github/workflows/* changes.
Dependencies
Links
Problem
#298 ✅ added
script/examples-web-smoke.shfor 001-SimpleWeb, 002-StaticWeb, and 004-ApiJson. There is no automated curl harness for the north-star appexamples/003-MiniWebApp/once VM serve is unblocked (#67).Goal
Extend
script/examples-web-smoke.sh(or a subcommand) to curl MiniWebApp routes:GET /?route=homeGET /?route=hello&name=DevPOST /?route=contactGET /?route=api/statusLater: PATH_INFO URLs when #210 migrates off
?route=; AOT mode viaphpc serve --aotwhen #454 flips green.Scope
examples/003-MiniWebApp/public/index.phpmissingphpc lint --all examples/003-MiniWebAppstill exits non-zero (skeleton phase)PHP_COMPILER_SKIP_SERVE_TESTS=1(same as DevEx: script/examples-web-smoke.sh — curl harness for shipped web examples #298)make examples-web-smoke/ README curl section inexamples/003-MiniWebApp/README.mdAcceptance criteria
./script/examples-web-smoke.sh --miniwebapp # or default when lint greenReturns 0 against
phpc serve 127.0.0.1:8080 examples/003-MiniWebAppafter #67.Verification (local / Docker only)
docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev ./script/examples-web-smoke.shNo
.github/workflows/*changes.Dependencies
Links