Skip to content

Commit 33c54a0

Browse files
committed
Fixed tests
1 parent b8d3b2c commit 33c54a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Coduo/PHPMatcher/MatcherTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function test_matcher_with_array_value()
8282
);
8383

8484
$this->assertTrue($this->matcher->match($value, $expectation), $this->matcher->getError());
85-
$this->assertTrue(PHPMatcher::match($value, $expectation), PHPMatcher::getError());
85+
$this->assertTrue(PHPMatcher::match($value, $expectation, $error), $error);
8686
}
8787

8888
/**
@@ -197,8 +197,8 @@ public function test_error_when_json_value_does_not_match_json_pattern()
197197
$this->assertFalse($this->matcher->match($value, $pattern));
198198
$this->assertSame('"5" does not match "4".', $this->matcher->getError());
199199

200-
$this->assertFalse(PHPMatcher::match($value, $pattern));
201-
$this->assertSame('"5" does not match "4".', PHPMatcher::getError());
200+
$this->assertFalse(PHPMatcher::match($value, $pattern, $error));
201+
$this->assertSame('"5" does not match "4".', $error);
202202
}
203203

204204
public function test_matcher_with_callback()

0 commit comments

Comments
 (0)