diff --git a/tests/PHPMatcher/Matcher/ArrayMatcherTest.php b/tests/PHPMatcher/Matcher/ArrayMatcherTest.php index 13abc855..4afdeb7d 100644 --- a/tests/PHPMatcher/Matcher/ArrayMatcherTest.php +++ b/tests/PHPMatcher/Matcher/ArrayMatcherTest.php @@ -39,6 +39,17 @@ public function test_negative_match_arrays($value, $pattern) $this->assertFalse($this->matcher->match($value, $pattern)); } + public function test_negative_match_when_cant_find_matcher_that_can_match_array_element() + { + $matcher = new ArrayMatcher( + new ChainMatcher(array( + new WildcardMatcher() + )) + ); + + $this->assertFalse($matcher->match(array('test' => 1), array('test' => 1))); + } + public static function positiveMatchData() { $simpleArr = array(