--- ../src/ExceptionInformationTest.php	2026-07-15 14:03:27.193551630 +0300
+++ ../src/ExceptionInformationTest.php	2026-07-15 14:10:04.490838315 +0300
@@ -5,15 +5,14 @@
 namespace League\Flysystem;
 
 use PHPUnit\Framework\TestCase;
+use PHPUnit\Framework\Attributes\Test;
 
 /**
  * @group core
  */
 class ExceptionInformationTest extends TestCase
 {
-    /**
-     * @test
-     */
+    #[Test]
     public function copy_exception_information(): void
     {
         $exception = UnableToCopyFile::fromLocationTo('from', 'to');
@@ -22,9 +21,7 @@
         $this->assertEquals(FilesystemOperationFailed::OPERATION_COPY, $exception->operation());
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function create_directory_exception_information(): void
     {
         $exception = UnableToCreateDirectory::atLocation('from', 'some message');
@@ -33,9 +30,7 @@
         $this->assertEquals(FilesystemOperationFailed::OPERATION_CREATE_DIRECTORY, $exception->operation());
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function delete_directory_exception_information(): void
     {
         $exception = UnableToDeleteDirectory::atLocation('from', 'some message');
@@ -45,9 +40,7 @@
         $this->assertEquals(FilesystemOperationFailed::OPERATION_DELETE_DIRECTORY, $exception->operation());
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function delete_file_exception_information(): void
     {
         $exception = UnableToDeleteFile::atLocation('from', 'some message');
@@ -57,36 +50,28 @@
         $this->assertEquals(FilesystemOperationFailed::OPERATION_DELETE, $exception->operation());
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function unable_to_check_for_file_existence(): void
     {
         $exception = UnableToCheckFileExistence::forLocation('location');
         $this->assertEquals(FilesystemOperationFailed::OPERATION_FILE_EXISTS, $exception->operation());
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function unable_to_check_for_existence(): void
     {
         $exception = UnableToCheckExistence::forLocation('location');
         $this->assertEquals(FilesystemOperationFailed::OPERATION_EXISTENCE_CHECK, $exception->operation());
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function unable_to_check_for_directory_existence(): void
     {
         $exception = UnableToCheckDirectoryExistence::forLocation('location');
         $this->assertEquals(FilesystemOperationFailed::OPERATION_DIRECTORY_EXISTS, $exception->operation());
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function move_file_exception_information(): void
     {
         $exception = UnableToMoveFile::fromLocationTo('from', 'to');
@@ -95,9 +80,7 @@
         $this->assertEquals(FilesystemOperationFailed::OPERATION_MOVE, $exception->operation());
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function read_file_exception_information(): void
     {
         $exception = UnableToReadFile::fromLocation('from', 'some message');
@@ -107,9 +90,7 @@
         $this->assertEquals(FilesystemOperationFailed::OPERATION_READ, $exception->operation());
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function retrieve_visibility_exception_information(): void
     {
         $exception = UnableToRetrieveMetadata::visibility('from', 'some message');
@@ -119,9 +100,7 @@
         $this->assertEquals(FilesystemOperationFailed::OPERATION_RETRIEVE_METADATA, $exception->operation());
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function set_visibility_exception_information(): void
     {
         $exception = UnableToSetVisibility::atLocation('from', 'some message');
@@ -131,9 +110,7 @@
         $this->assertEquals(FilesystemOperationFailed::OPERATION_SET_VISIBILITY, $exception->operation());
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function write_file_exception_information(): void
     {
         $exception = UnableToWriteFile::atLocation('from', 'some message');
@@ -143,9 +120,7 @@
         $this->assertEquals(FilesystemOperationFailed::OPERATION_WRITE, $exception->operation());
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function unreadable_file_exception_information(): void
     {
         $exception = UnreadableFileEncountered::atLocation('the-location');
@@ -153,9 +128,7 @@
         $this->assertStringContainsString('the-location', $exception->getMessage());
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function symbolic_link_exception_information(): void
     {
         $exception = SymbolicLinkEncountered::atLocation('the-location');
@@ -163,9 +136,7 @@
         $this->assertStringContainsString('the-location', $exception->getMessage());
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function path_traversal_exception_information(): void
     {
         $exception = PathTraversalDetected::forPath('../path.txt');
