Skip to content

Commit f274bbd

Browse files
committed
Merge pull request #7 from norzechowicz/dev
Added missing test
2 parents c53ab89 + 0c2e619 commit f274bbd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/PHPMatcher/Matcher/ArrayMatcherTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ public function test_negative_match_arrays($value, $pattern)
3939
$this->assertFalse($this->matcher->match($value, $pattern));
4040
}
4141

42+
public function test_negative_match_when_cant_find_matcher_that_can_match_array_element()
43+
{
44+
$matcher = new ArrayMatcher(
45+
new ChainMatcher(array(
46+
new WildcardMatcher()
47+
))
48+
);
49+
50+
$this->assertFalse($matcher->match(array('test' => 1), array('test' => 1)));
51+
}
52+
4253
public static function positiveMatchData()
4354
{
4455
$simpleArr = array(

0 commit comments

Comments
 (0)