Skip to content

test: phpc build smoke for 002-StaticWeb (closes #282)#355

Merged
PurHur merged 1 commit into
masterfrom
issue-282-phpc-build-smoke
May 20, 2026
Merged

test: phpc build smoke for 002-StaticWeb (closes #282)#355
PurHur merged 1 commit into
masterfrom
issue-282-phpc-build-smoke

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 20, 2026

Summary

  • Adds testPhpcBuildSmoke002StaticWeb() to ExamplesCompileTest: runs ./phpc build -o <tmp> examples/002-StaticWeb/example.php, executes the binary, asserts Hello World and exit 0.
  • Keeps existing bin/compile.php -l paths; this is an additional unified-CLI smoke (@group llvm).

Test plan

  • vendor/bin/phpunit --group llvm --filter 'ExamplesCompileTest.*PhpcBuild' (Docker php-compiler:22.04-dev, tar copy)
  • vendor/bin/phpunit test/unit/ExamplesCompileTest.php --group llvm — 5 tests OK

Closes #282. Overlaps #247 (002-StaticWeb AOT execute via compile.php); this PR covers the phpc build path called out in #282.

Made with Cursor

Closes #282. Exercises ./phpc build -o then runs the AOT binary so
unified CLI forwarding is covered alongside existing compile.php gates.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur merged commit 30b2de0 into master May 20, 2026
@PurHur PurHur deleted the issue-282-phpc-build-smoke branch May 20, 2026 13:54
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.

DevEx: phpc build smoke in ExamplesCompileTest (unified CLI path)

1 participant