Skip to content

Deliver the standalone Testing executor, PHPUnit extension API and report contract #1

Backlog

Description

@coisa

First executable increment

Parent: php-fast-forward/dev-tools#380. Deliver the standalone executor and result contract before opt-in feedback. Reference base, README only, not a candidate. Kanban: t_b3b9c6a4 (bounded custody check) → t_fdd7af45 → t_bb9d000c → t_57f36170.

Architecture and dependency acceptance

Use Code Standards v0.11.0 and Changelog v0.7.1 as references. PHP ^8.3 is a qualification target, not a proven minimum; verify actual PHP/extensions and do not inherit a PHP 8.5 floor.

  • Runtime: distinguish CLI needs from the PHPUnit subprocess. Use explicit or project-local vendor/bin/phpunit, consumer autoload and public unscoped Testing extension APIs from the same domain/version via Composer when configured. PCOV or Xdebug only when coverage is requested. Use reflection inside the child to identify the source files for a PHPUnit class and a configured public extension class and prove they resolve from the consumer's vendor. Remove the expected PHPUnit, put a sentinel substitute on PATH and prove the CLI fails with a diagnostic without invoking it. No global fallback.
  • PHAR: CLI, local discovery/dispatch, defaults/config, result normalization, artifact contract and required private libraries. No PHPUnit, coverage driver or scoped substitute for public extension APIs. Use an explicit inclusion list resolved against the source lock and a separate runtime manifest (Code Standards example, Changelog example); do not copy or prune the development vendor as the build input. Hand off the generated runtime lock and PHAR inventory keyed to exact candidate SHA and artifact digest; verify direct/transitive contents and run outside the source checkout without the tooling package's development vendor.
  • Build/tests only: Composer for build resolution, Box, the package's own PHPUnit, lint/static analysis and PHP/PHPUnit fixtures with/without a coverage driver. Build PHPUnit never substitutes for the consumer's.

Functional acceptance and boundaries

  • Deliver direct CLI/verified versioned PHAR, docs, portable versioned skill and reusable test workflow; no runtime dependency on DevTools, mandatory Composer plugin or CPX fallback. Preserve cwd, arguments, XML/bootstrap and consumer autoload. Inventory legacy FQCNs/configs, document compatibility, and put DevTools adapters in adoption without duplicating rules.
  • Produce independent JUnit and coverage. Distinguish coverage not requested from requested without driver, and success/no-tests/skips/failure; preserve exits and diagnostics. Inert versioned result identifies artifact, producer/version, source repository/SHA, run identity where applicable and digest; reject malformed inputs and bind expectations to trusted context, not the payload. Never execute report contents.
  • Qualify direct use in clean, unprivileged Code Standards, Changelog and DevTools builds, with exact base/head, matrix, real results and independent QA/review. No active workflow to an unpublished release; no feedback or publication in the first PR.

Provenance and next step

The 77-file receipt describes historical local bytes; the worktree is a stub. Record the bounded custody check. Preserve provenance and retest if verified bytes are found; otherwise re-specify the same card as a new reconstruction only after confirming no concurrent writer. Pin Git sources, document selective reuse from php-fast-forward/dev-tools#403, and do not claim recovery or count historical tests. No code, claim or push until operator clearance. DevTools #376 and the clock proof remain independent; keep #380 open for follow-ups and adoption.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions