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