Skip to content

Tests: Document leak comparison exit codes - #32

Merged
lucatume merged 1 commit into
lucatume:test-leak-harnessfrom
andreivrabielucian-dev:patch-1
Nov 26, 2026
Merged

lucatume merged 1 commit into
lucatume:test-leak-harnessfrom
andreivrabielucian-dev:patch-1

Conversation

@andreivrabielucian-dev

Copy link
Copy Markdown

Follow-up to WordPress#16204 and Core Trac #66802. The PHPUnit README now distinguishes a clean comparison (exit 0), reported differences (exit 2), and comparison errors caused by missing or unusable class-start snapshots (exit 1).

Verified with PHP 8.1 on 2d49006 using five JSONL fixtures. A reported change exited 2, run noise alone exited 0, and a missing target in either input or a target that ran first in the sequence exited 1.

AI assistance: Codex helped draft the documentation and run the local checks.

Describe the exit codes for differences, no differences, and missing or unusable class-start snapshots.

Verified five comparison cases with PHP 8.1. Drafting and local verification were assisted by Codex.
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs.

Core Committers: Use this line as a base for the props when committing in SVN:

Props andreivrabie, lucatume.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub or WordPress.org user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

@lucatume

Copy link
Copy Markdown
Owner

Thank you @andreivrabielucian-dev!

@lucatume
lucatume merged commit 10a9785 into lucatume:test-leak-harness Nov 26, 2026
4 checks passed
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.

2 participants