pest icon indicating copy to clipboard operation
pest copied to clipboard

fix: incorrect toMatchArray expectation message

Open i906 opened this issue 1 year ago • 0 comments

What:

  • [x] 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:

https://github.com/pestphp/pest/pull/583

i906 avatar Jan 20 '25 13:01 i906