Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toMatchArray/Object wrong field fix #1357

Open
wants to merge 3 commits into
base: 3.x
Choose a base branch
from
Open

Conversation

drsdre
Copy link

@drsdre drsdre commented Feb 25, 2025

What:

  • Bug Fix
  • New Feature

Description:

The functions toMatchArray and toMatchObject indicate that the wrong field is mismatching from the second loop on. This is because the 'message' parameter is overwritten and taken into the following loop. This patch creates a $second_message variable for the second test (value test) and therefore keeps the loop clean.

Related:

#945

The functions toMatchArray and toMatchObject indicate that the wrong field is mismatching from the second loop on because the 'message' is overwritten and taken into the following loop. This patch creates a $second_message for the second test (value test) to keep the error message correct.
Remove remaining } in toMatchObject.
Reset approach was not the right one.
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