Skip to content

Update phpt message assertion for v0.3.0 BC break#10

Merged
nicolas-grekas merged 1 commit into
mainfrom
fix-phpt-message-assertion
Apr 15, 2026
Merged

Update phpt message assertion for v0.3.0 BC break#10
nicolas-grekas merged 1 commit into
mainfrom
fix-phpt-message-assertion

Conversation

@nicolas-grekas
Copy link
Copy Markdown
Member

Summary

tests/deepclone_hydrate.phpt asserted on the substring 'mangled key' in the ValueError raised when a mangled key appears inside a scoped array. The v0.3.0 BC-break rename ($scoped_vars+$mangled_vars → single $vars + DEEPCLONE_HYDRATE_MANGLED_VARS flag) updated the message to point users at the new flag/arg; the old substring no longer matches.

Post-tag CI catch — all platforms (Linux NTS/ZTS/i386/debug, macOS, Windows) flagged the same assertion. Switched the check to 'DEEPCLONE_HYDRATE_MANGLED_VARS' so it tracks the current message.

Test plan

  • CI is green across the matrix

The deepclone_hydrate.phpt test checked for 'mangled key' in the error
raised when a mangled key appears inside a scoped array. The v0.3.0 BC
break changed that message to point at DEEPCLONE_HYDRATE_MANGLED_VARS
and $flags; 'mangled key' no longer appears in the text. Assert on the
new constant name instead.
@nicolas-grekas nicolas-grekas merged commit 41398c2 into main Apr 15, 2026
20 checks passed
@nicolas-grekas nicolas-grekas deleted the fix-phpt-message-assertion branch April 15, 2026 14:55
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.

1 participant