Skip to content

Testing: aot phpt miniwebapp_render_home — resolveAppName + layout include (#764) #867

Description

@PurHur

Problem

The #764 bisect ladder has unit-sized PHPTs (#848 isset config) and layout-tier fixtures (#784, #807, #832), but no single PHPT that mirrors Router::renderHome():

  1. Read $this->config['app_name'] via resolveAppName()
  2. Set $title / $appName locals
  3. include templates/layout.php (one hop, no title-branch partials yet)

Without this middle step, fixes can green #848 while full 003 still prints 0 bytes.

Goal

Add test/fixtures/aot/cases/miniwebapp_render_home.phpt (+ entry.php tree) picked up by test/aot/AotTest.php:

  • --EXPECT-- contains MiniWebApp and <html (layout shell)
  • Runs in @group llvm via ./script/ci-local.sh --filter miniwebapp_render_home

Implementation hints

Piece Path Notes
Fixture test/fixtures/aot/cases/miniwebapp_render_home/entry.php Minimal Router with renderHome() only
Template layout.stub.php Copy nav shell from 003 without title-branch includes
Test wiring test/aot/AotTest.php Auto-discovered under fixtures/aot/cases/
Parent #764, #848, #784 Order: green isset → this → layout branches

Reproduce

./script/ci-local.sh --filter miniwebapp_render_home

Acceptance criteria

Dependencies

Verification

docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev \
  ./script/ci-local.sh --filter miniwebapp_render_home

Links

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions