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

fix: incorrect toMatchArray expectation message #1342

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

Conversation

i906
Copy link

@i906 i906 commented Jan 20, 2025

What:

  • Bug Fix
  • New Feature

Description:

Fixes incorrect toMatchArray expectation message.

Test:

expect($this->user)->toMatchArray([
    'id' => 1,
    'email' => '[email protected]',
]);

Before:

Failed asserting that an array has a key 'id' with the value 1.
Failed asserting that two strings are equal.
Expected :'[email protected]'
Actual   :'[email protected]'

After:

Failed asserting that an array has a key 'email' with the value '[email protected]'.
Failed asserting that two strings are equal.
Expected :'[email protected]'
Actual   :'[email protected]'

Related:

#583

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