88use Flow \Filesystem \Exception \InvalidArgumentException ;
99use Flow \Filesystem \Path \{Options , WindowsPath };
1010use Flow \Filesystem \Tests \Unit \PathTestCase ;
11+ use PHPUnit \Framework \Attributes \DataProvider ;
1112
1213final class WindowsPathTest extends PathTestCase
1314{
@@ -253,9 +254,7 @@ public function test_options_handling() : void
253254 self ::assertEquals (['key ' => 'value ' ], $ path ->options ()->toArray ());
254255 }
255256
256- /**
257- * @dataProvider pathProvider
258- */
257+ #[DataProvider('pathProvider ' )]
259258 public function test_os_agnostic_logic (string $ input , string $ expectedPath , string $ expectedScheme ) : void
260259 {
261260 $ path = new WindowsPath ($ input );
@@ -264,9 +263,7 @@ public function test_os_agnostic_logic(string $input, string $expectedPath, stri
264263 self ::assertEquals ($ expectedScheme , $ path ->protocol ()->name );
265264 }
266265
267- /**
268- * @dataProvider partitionProvider
269- */
266+ #[DataProvider('partitionProvider ' )]
270267 public function test_partition_logic (string $ input , array $ partitionData , string $ expected ) : void
271268 {
272269 $ path = new WindowsPath ($ input );
@@ -364,9 +361,7 @@ public function test_pathinfo_backslash_edge_case() : void
364361 self ::assertEquals ('file:// ' , $ parent ->uri ());
365362 }
366363
367- /**
368- * @dataProvider patternProvider
369- */
364+ #[DataProvider('patternProvider ' )]
370365 public function test_pattern_logic (string $ pattern , string $ filename , bool $ expected ) : void
371366 {
372367 $ patternPath = new WindowsPath ($ pattern );
0 commit comments