You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.
What I'm ultimately after is a more useful error message than "[array:2]"... like which key/value pair didn't match. Something like:
Array (
'a' => 'b'
--->'c' => 'e'
)
I may be bumping up against a PHPSpec architectural issue, since the presenters only take in one value at a time - no way to cross-compare and display two arrays, for example.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Any plans to add array matchers (someOf, only)?
I've poked around a bit and see that Sebastian Bergmann's comparator package has a slick ArrayComparator that could be employed. And, this guy made a go of it, but it's not quite right https://github.com/jameshalsall/phpspec-array-contains-matchers
The text was updated successfully, but these errors were encountered: