## Problem **#807** tracks a `layout_partial_chain.phpt` fixture for conditional partial includes in `layout.php`. On `master`, the directory already exists: ``` test/fixtures/aot/cases/layout_title_branch/ entry.php # Renderer::go() → include layout.php layout.php # $_SERVER['SCRIPT_NAME'] ?? … + title-branch includes home.php / hello.php ``` There is **no** `layout_title_branch.phpt` driver file and no PHPUnit/AOT harness registration — the bisect cannot run in CI until wired. ## Goal 1. Add `test/fixtures/aot/cases/layout_title_branch.phpt` (or rename dir to match **#807** name — pick one canonical name) 2. Register in AOT fixture lint/execute list (same pattern as **#806** `require_return_config.phpt`) 3. `@group aot-link` passes when layout branch includes emit partial markers ## Implementation hints | Piece | File | Notes | |-------|------|-------| | PHPT | `layout_title_branch.phpt` | `--ENV--` optional `SCRIPT_NAME` | | Needles | `home.php` / `hello.php` | Distinct markers per partial | | Harness | `test/unit/IncludeLiteralTest.php` or AOT fixture runner | Mirror **#810** | | Parent | **#784**, **#807**, **#764** | ### Reproduce ```bash ./script/ci-local.sh --filter layout_title_branch docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev \ ./script/ci-local.sh --filter layout_title_branch ``` ## Acceptance criteria - [ ] PHPT listed in `test/fixtures/aot/cases/` and discovered by existing AOT fixture driver - [ ] Execute stdout contains partial marker for `Home` title branch - [ ] When broken, skip/fail cites **#784** / **#764**, not **#568** ## Dependencies - **#739** ✅ — void method + single include baseline - **#784** — integration in full MiniWebApp layout - **#807** — may close together when PHPT lands ## Verification Local/Docker only — not GitHub Actions. ## Links - `examples/003-MiniWebApp/templates/layout.php` - **#676** step 0b - ROADMAP **#78**
Problem
#807 tracks a
layout_partial_chain.phptfixture for conditional partial includes inlayout.php. Onmaster, the directory already exists:There is no
layout_title_branch.phptdriver file and no PHPUnit/AOT harness registration — the bisect cannot run in CI until wired.Goal
test/fixtures/aot/cases/layout_title_branch.phpt(or rename dir to match AOT: layout partial chain fixture (conditional includes in layout.php, #784) #807 name — pick one canonical name)require_return_config.phpt)@group aot-linkpasses when layout branch includes emit partial markersImplementation hints
layout_title_branch.phpt--ENV--optionalSCRIPT_NAMEhome.php/hello.phptest/unit/IncludeLiteralTest.phpor AOT fixture runnerReproduce
./script/ci-local.sh --filter layout_title_branch docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev \ ./script/ci-local.sh --filter layout_title_branchAcceptance criteria
test/fixtures/aot/cases/and discovered by existing AOT fixture driverHometitle branchDependencies
Verification
Local/Docker only — not GitHub Actions.
Links
examples/003-MiniWebApp/templates/layout.php