--- ../src/FinfoMimeTypeDetectorTest.php	2026-07-15 11:21:50.571455187 +0300
+++ ../src/FinfoMimeTypeDetectorTest.php	2026-07-15 11:22:56.437462032 +0300
@@ -5,6 +5,7 @@
 namespace League\MimeTypeDetection;
 
 use PHPUnit\Framework\TestCase;
+use PHPUnit\Framework\Attributes\Test;
 
 class FinfoMimeTypeDetectorTest extends TestCase
 {
@@ -18,9 +19,7 @@
         $this->detector = new FinfoMimeTypeDetector();
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function detecting_a_csv(): void
     {
         $mimeType = $this->detector->detectMimeType('something.csv', '');
@@ -28,9 +27,7 @@
         $this->assertEquals('text/csv', $mimeType);
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function detecting_mime_type_from_a_path(): void
     {
         $mimeType = $this->detector->detectMimeTypeFromPath('something.svg');
@@ -38,9 +35,7 @@
         $this->assertEquals('image/svg+xml', $mimeType);
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function detecting_mime_type_from_contents(): void
     {
         /** @var string $contents */
@@ -51,9 +46,7 @@
         $this->assertStringStartsWith('image/svg', $mimeType);
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function detecting_mime_type_from_buffer(): void
     {
         /** @var string $contents */
@@ -64,9 +57,7 @@
         $this->assertStringStartsWith('image/svg', $mimeType);
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function detecting_mime_type_from_sampled_buffer(): void
     {
         $this->detector = new FinfoMimeTypeDetector('', null, 5);
@@ -78,9 +69,7 @@
         $this->assertStringStartsWith('image/svg', $mimeType);
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function detecting_from_contents_falls_back_to_extension_detection(): void
     {
         $mimeType = $this->detector->detectMimeType('flysystem.svg', '');
@@ -88,9 +77,7 @@
         $this->assertStringStartsWith('image/svg+xml', $mimeType);
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function detecting_from_a_file_location(): void
     {
         $mimeType = $this->detector->detectMimeTypeFromFile(__DIR__ . '/../test_files/flysystem.svg');
@@ -98,9 +85,7 @@
         $this->assertStringStartsWith('image/svg', $mimeType);
     }
 
-    /**
-     * @test
-     */
+    #[Test]
     public function detecting_uses_extensions_when_a_resource_is_presented(): void
     {
         /** @var resource $handle */
