@@ -30,7 +30,7 @@ public function testLeadingPathCharacterMismatch() {
3030 }
3131
3232 /**
33- * @dataProvider testMatchesProvider
33+ * @dataProvider provideMatches
3434 */
3535 public function testMatches ($ pattern , $ shouldMatch , $ shouldNotMatch )
3636 {
@@ -48,11 +48,16 @@ public function formatTestMatchesMessage($pattern, $path)
4848 return 'Testing path " ' . $ path . '" against pattern " ' . $ pattern . '" ' ;
4949 }
5050
51- public function testMatchesProvider ()
51+ public function provideMatches ()
5252 {
5353 return array (
5454 array (
5555 'com/t?st ' ,
56+ array ('com/test ' , 'com/tast ' , 'com/txst ' ),
57+ array ('com/test.jsp ' , 'com/tast.jsp ' , 'com/txst.jsp ' ),
58+ ),
59+ array (
60+ 'com/t?st.jsp ' ,
5661 array ('com/test.jsp ' , 'com/tast.jsp ' , 'com/txst.jsp ' ),
5762 array ('com/toast.jsp ' , 'com/README.md ' )
5863 ),
@@ -95,7 +100,12 @@ public function testMatchesProvider()
95100 'com/foo/ ' ,
96101 array ('com/foo/bar.jsp ' ,'com/foo/bar/baz.jsp ' ,),
97102 array ('com.txt ' , 'com/foo.txt ' ),
98- )
103+ ),
104+ array (
105+ 'com/** ' ,
106+ array ('com/foo ' ),
107+ array ('com2/foo ' , '_com/foo ' ),
108+ ),
99109 );
100110 }
101111
0 commit comments