Skip to content

Testing: layout_title_branch.phpt — wire existing AOT fixture dir (#807, #784) #832

Description

@PurHur

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 AOT: layout partial chain fixture (conditional includes in layout.php, #784) #807 name — pick one canonical name)
  2. Register in AOT fixture lint/execute list (same pattern as AOT: require-as-expression fixture (config.php return array pattern, #783) #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

./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

Dependencies

Verification

Local/Docker only — not GitHub Actions.

Links

No activity

Activity on this issue will appear here.

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