/** * @dataProvider dataProviderForTestMatches */ public function testMatches($subject, $pattern, $result) { $string = new Str($subject); $this->assertEquals($result, $string->matches($pattern)); }