77 * For the full copyright and license information, please view the LICENSE
88 * file that was distributed with this source code.
99 */
10+
1011namespace SebastianBergmann \FileIterator ;
1112
1213use function realpath ;
@@ -41,11 +42,15 @@ public static function provider(): array
4142 $ fixtureDirectoryRealpath . '/a/c/d/Prefix.php ' ,
4243 $ fixtureDirectoryRealpath . '/a/c/d/PrefixSuffix.php ' ,
4344 $ fixtureDirectoryRealpath . '/a/c/d/Suffix.php ' ,
45+ $ fixtureDirectoryRealpath . '/a/c/d/i/PrefixSuffix.php ' ,
4446 $ fixtureDirectoryRealpath . '/b/PrefixSuffix.php ' ,
4547 $ fixtureDirectoryRealpath . '/b/e/PrefixSuffix.php ' ,
4648 $ fixtureDirectoryRealpath . '/b/e/g/PrefixSuffix.php ' ,
49+ $ fixtureDirectoryRealpath . '/b/e/g/i/PrefixSuffix.php ' ,
50+ $ fixtureDirectoryRealpath . '/b/e/i/PrefixSuffix.php ' ,
4751 $ fixtureDirectoryRealpath . '/b/f/PrefixSuffix.php ' ,
4852 $ fixtureDirectoryRealpath . '/b/f/h/PrefixSuffix.php ' ,
53+ $ fixtureDirectoryRealpath . '/b/f/h/i/PrefixSuffix.php ' ,
4954 ],
5055 __DIR__ . '/../fixture ' ,
5156 '' ,
@@ -59,6 +64,8 @@ public static function provider(): array
5964 $ fixtureDirectoryRealpath . '/b/PrefixSuffix.php ' ,
6065 $ fixtureDirectoryRealpath . '/b/e/PrefixSuffix.php ' ,
6166 $ fixtureDirectoryRealpath . '/b/e/g/PrefixSuffix.php ' ,
67+ $ fixtureDirectoryRealpath . '/b/e/g/i/PrefixSuffix.php ' ,
68+ $ fixtureDirectoryRealpath . '/b/e/i/PrefixSuffix.php ' ,
6269 ],
6370 __DIR__ . '/../fixture ' ,
6471 '' ,
@@ -76,11 +83,15 @@ public static function provider(): array
7683 $ fixtureDirectoryRealpath . '/a/c/PrefixSuffix.php ' ,
7784 $ fixtureDirectoryRealpath . '/a/c/d/Prefix.php ' ,
7885 $ fixtureDirectoryRealpath . '/a/c/d/PrefixSuffix.php ' ,
86+ $ fixtureDirectoryRealpath . '/a/c/d/i/PrefixSuffix.php ' ,
7987 $ fixtureDirectoryRealpath . '/b/PrefixSuffix.php ' ,
8088 $ fixtureDirectoryRealpath . '/b/e/PrefixSuffix.php ' ,
8189 $ fixtureDirectoryRealpath . '/b/e/g/PrefixSuffix.php ' ,
90+ $ fixtureDirectoryRealpath . '/b/e/g/i/PrefixSuffix.php ' ,
91+ $ fixtureDirectoryRealpath . '/b/e/i/PrefixSuffix.php ' ,
8292 $ fixtureDirectoryRealpath . '/b/f/PrefixSuffix.php ' ,
8393 $ fixtureDirectoryRealpath . '/b/f/h/PrefixSuffix.php ' ,
94+ $ fixtureDirectoryRealpath . '/b/f/h/i/PrefixSuffix.php ' ,
8495 ],
8596 __DIR__ . '/../fixture ' ,
8697 '' ,
@@ -95,11 +106,15 @@ public static function provider(): array
95106 $ fixtureDirectoryRealpath . '/a/c/Suffix.php ' ,
96107 $ fixtureDirectoryRealpath . '/a/c/d/PrefixSuffix.php ' ,
97108 $ fixtureDirectoryRealpath . '/a/c/d/Suffix.php ' ,
109+ $ fixtureDirectoryRealpath . '/a/c/d/i/PrefixSuffix.php ' ,
98110 $ fixtureDirectoryRealpath . '/b/PrefixSuffix.php ' ,
99111 $ fixtureDirectoryRealpath . '/b/e/PrefixSuffix.php ' ,
100112 $ fixtureDirectoryRealpath . '/b/e/g/PrefixSuffix.php ' ,
113+ $ fixtureDirectoryRealpath . '/b/e/g/i/PrefixSuffix.php ' ,
114+ $ fixtureDirectoryRealpath . '/b/e/i/PrefixSuffix.php ' ,
101115 $ fixtureDirectoryRealpath . '/b/f/PrefixSuffix.php ' ,
102116 $ fixtureDirectoryRealpath . '/b/f/h/PrefixSuffix.php ' ,
117+ $ fixtureDirectoryRealpath . '/b/f/h/i/PrefixSuffix.php ' ,
103118 ],
104119 __DIR__ . '/../fixture ' ,
105120 'Suffix.php ' ,
@@ -115,12 +130,26 @@ public static function provider(): array
115130 $ fixtureDirectoryRealpath . '/a/c/d/Prefix.php ' ,
116131 $ fixtureDirectoryRealpath . '/a/c/d/PrefixSuffix.php ' ,
117132 $ fixtureDirectoryRealpath . '/a/c/d/Suffix.php ' ,
133+ $ fixtureDirectoryRealpath . '/a/c/d/i/PrefixSuffix.php ' ,
118134 ],
119135 __DIR__ . '/../fixture/*/c ' ,
120136 '' ,
121137 '' ,
122138 [],
123139 ],
140+ 'globstar, filter prefix: no, filter suffix: no, excludes: none ' => [
141+ [
142+
143+ $ fixtureDirectoryRealpath . '/a/c/d/i/PrefixSuffix.php ' ,
144+ $ fixtureDirectoryRealpath . '/b/e/g/i/PrefixSuffix.php ' ,
145+ $ fixtureDirectoryRealpath . '/b/e/i/PrefixSuffix.php ' ,
146+ $ fixtureDirectoryRealpath . '/b/f/h/i/PrefixSuffix.php ' ,
147+ ],
148+ __DIR__ . '/../fixture/**/i ' ,
149+ '' ,
150+ '' ,
151+ []
152+ ],
124153 ];
125154 }
126155
@@ -140,11 +169,11 @@ protected function tearDown(): void
140169 }
141170
142171 /**
143- * @param list<non-empty-string> $expected
172+ * @param list<non-empty-string> $expected
144173 * @param list<non-empty-string>|non-empty-string $paths
145- * @param list<non-empty-string>|string $suffixes
146- * @param list<non-empty-string>|string $prefixes
147- * @param list<non-empty-string> $exclude
174+ * @param list<non-empty-string>|string $suffixes
175+ * @param list<non-empty-string>|string $prefixes
176+ * @param list<non-empty-string> $exclude
148177 */
149178 #[DataProvider('provider ' )]
150179 public function testSomething (array $ expected , array |string $ paths , array |string $ suffixes , array |string $ prefixes , array $ exclude ): void
0 commit comments