Skip to content

Commit 41398c2

Browse files
Update phpt message assertion for v0.3.0 BC break
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.
1 parent cbb808c commit 41398c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/deepclone_hydrate.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ try {
285285
try {
286286
deepclone_hydrate('stdClass', ['stdClass' => ["\0stdClass\0x" => 'val']]);
287287
} catch (\ValueError $e) {
288-
var_dump(str_contains($e->getMessage(), 'mangled key'));
288+
var_dump(str_contains($e->getMessage(), 'DEEPCLONE_HYDRATE_MANGLED_VARS'));
289289
}
290290

291291
// Interface as scope → ValueError

0 commit comments

Comments
 (0)