pest
pest copied to clipboard
fix: incorrect toMatchArray expectation message
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