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
I have an issue, I don't know how to use the .inArray() pattern expander.
Whatever I try, I get this error message :
MyTest::test_something
Failed asserting that Value "my-string" does not match pattern "@string@.inArray([])" at path: "[0][id]".
/.../my-project/vendor/coduo/php-matcher/src/PHPUnit/PHPMatcherConstraint.php:65
/.../my-project/vendor/coduo/php-matcher/src/PHPUnit/PHPMatcherAssertions.php:21
/.../my-project/tests/MyTest.php:35
I'm using the assertMatchedPattern() trait method, and the pattern I use is this :
(I try with an empty array, but I also tried with hardcoded array or "json-encoded" variables)
Hey, yeah now when I look at it, inArray expander is not as self descriptive as I thought originally, I will adjust the documentation with proper example but in the meantime please find it here: @array@.inArray() example
Hi,
I have an issue, I don't know how to use the
.inArray()
pattern expander.Whatever I try, I get this error message :
I'm using the
assertMatchedPattern()
trait method, and the pattern I use is this :(I try with an empty array, but I also tried with hardcoded array or "json-encoded" variables)
According to what I saw in the
InArray
expander class, I should have one of these error messages :or
Am I using it wrong ? Is it possible to add an example in the documentation ? Thanks a lot ! 🙏
The text was updated successfully, but these errors were encountered: