Skip to content

Positive %a and %A matches are not ignored from diff when EXPECTF fails#6192

Merged
sebastianbergmann merged 1 commit intosebastianbergmann:11.5from
sebastianfeldmann:bugfix-phpt-diff-output
Apr 26, 2025
Merged

Positive %a and %A matches are not ignored from diff when EXPECTF fails#6192
sebastianbergmann merged 1 commit intosebastianbergmann:11.5from
sebastianfeldmann:bugfix-phpt-diff-output

Conversation

@sebastianfeldmann
Copy link
Copy Markdown
Contributor

In case of multiline placeholder %a or %A we try to match multiple lines at the same time.

The tricky part is to keep the expected output and the real output in sync since they can be different in size and amount of lines.

In case of multiline placeholder %a or %A we try to match
multiple lines at the same time.

The tricky part is to keep the expected output and the real
output in sync since they can be different in size and amount
of lines.

Co-authored-by: Volker Dusch <github@wallbash.com>
Co-authored-by: Sebastian Feldmann <sf@sebastian-feldmann.info>
@sebastianbergmann sebastianbergmann added type/bug Something is broken feature/phpt End-to-end tests in PHPT format labels Apr 26, 2025
@sebastianbergmann sebastianbergmann merged commit 72ea2b5 into sebastianbergmann:11.5 Apr 26, 2025
29 checks passed
@sebastianbergmann sebastianbergmann changed the title Improve failed phpt test diff Positive %a and %A matches are not ignored from diff when EXPECTF fails Apr 26, 2025
@sebastianfeldmann sebastianfeldmann deleted the bugfix-phpt-diff-output branch April 26, 2025 13:43
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

feature/phpt End-to-end tests in PHPT format type/bug Something is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants