1010/**
1111 * @internal
1212 */
13- class FileSystemHelperImplTest extends BaseCase
13+ final class FileSystemHelperImplTest extends BaseCase
1414{
1515 public function testEmptyBasePathUnexistedInConstructException (): void
1616 {
@@ -21,9 +21,7 @@ public function testEmptyBasePathUnexistedInConstructException(): void
2121 new FileSystemHelperImpl ($ path );
2222 }
2323
24- /**
25- * @dataProvider provideRemove
26- */
24+ #[\PHPUnit \Framework \Attributes \DataProvider('provideRemove ' )]
2725 public function testRemove (string |\SplFileInfo $ file , ?string $ baseDir = null , ?\Exception $ exception = null ): void
2826 {
2927 $ helper = new FileSystemHelperImpl ($ baseDir );
@@ -101,9 +99,7 @@ public static function provideRemove(): array
10199 ];
102100 }
103101
104- /**
105- * @dataProvider provideRemoveIfExists
106- */
102+ #[\PHPUnit \Framework \Attributes \DataProvider('provideRemoveIfExists ' )]
107103 public function testRemoveIfExists (string |\SplFileInfo $ file , ?string $ baseDir = null , ?\Exception $ exception = null ): void
108104 {
109105 $ helper = new FileSystemHelperImpl ($ baseDir );
@@ -179,9 +175,7 @@ public static function provideRemoveIfExists(): array
179175 ];
180176 }
181177
182- /**
183- * @dataProvider provideCopyFile
184- */
178+ #[\PHPUnit \Framework \Attributes \DataProvider('provideCopyFile ' )]
185179 public function testCopyFile (string |\SplFileInfo $ from , string |\SplFileInfo $ to , ?\Exception $ exception = null , ?string $ baseDir = null ): void
186180 {
187181 $ helper = new FileSystemHelperImpl ($ baseDir );
@@ -302,9 +296,7 @@ public function testCopyDir(): void
302296 $ this ->assertFileEquals ($ nestedFileSecondLevel , $ destinationNestedFileSecondLevel );
303297 }
304298
305- /**
306- * @dataProvider provideRenameFile
307- */
299+ #[\PHPUnit \Framework \Attributes \DataProvider('provideRenameFile ' )]
308300 public function testRenameFile (string |\SplFileInfo $ from , string |\SplFileInfo $ to , ?\Exception $ exception = null , ?string $ baseDir = null ): void
309301 {
310302 $ helper = new FileSystemHelperImpl ($ baseDir );
@@ -426,9 +418,7 @@ public function testRenameDir(): void
426418 $ this ->assertFileDoesnotExist ($ nestedFileSecondLevel );
427419 }
428420
429- /**
430- * @dataProvider provideMkdir
431- */
421+ #[\PHPUnit \Framework \Attributes \DataProvider('provideMkdir ' )]
432422 public function testMkdir (\SplFileInfo |string $ name , ?int $ permissions = null , ?\Exception $ exception = null , ?string $ baseDir = null ): void
433423 {
434424 $ helper = new FileSystemHelperImpl ($ baseDir );
@@ -492,9 +482,7 @@ public static function provideMkdir(): array
492482 ];
493483 }
494484
495- /**
496- * @dataProvider provideMkdirIfNotExist
497- */
485+ #[\PHPUnit \Framework \Attributes \DataProvider('provideMkdirIfNotExist ' )]
498486 public function testMkdirIfNotExist (\SplFileInfo |string $ name , ?int $ permissions = null , ?\Exception $ exception = null , ?string $ baseDir = null ): void
499487 {
500488 $ helper = new FileSystemHelperImpl ($ baseDir );
0 commit comments