/** * @dataProvider negativeMatchDescription */ public function test_negative_match_description($value, $pattern, $error) { $matcher = new ExpressionMatcher(); $matcher->match($value, $pattern); $this->assertEquals($error, $matcher->getError()); }