1515
1616use AUS \AusDriverAmazonS3 \Driver \AmazonS3Driver ;
1717use AUS \AusDriverAmazonS3 \Index \Extractor ;
18+ use PHPUnit \Framework \Attributes \Test ;
1819use PHPUnit \Framework \TestCase ;
1920use Prophecy \PhpUnit \ProphecyTrait ;
2021use TYPO3 \CMS \Core \Resource \File ;
@@ -44,9 +45,7 @@ public function setUp(): void
4445 $ this ->extractor = new Extractor ();
4546 }
4647
47- /**
48- * @test
49- */
48+ #[Test]
5049 public function testCanProcessImageFileType ()
5150 {
5251 $ storage = $ this ->prophesize (ResourceStorage::class);
@@ -59,9 +58,7 @@ public function testCanProcessImageFileType()
5958 $ this ->assertEquals (true , $ this ->extractor ->canProcess ($ file ->reveal ()));
6059 }
6160
62- /**
63- * @test
64- */
61+ #[Test]
6562 public function testCanNotProcessOtherDriverType ()
6663 {
6764 $ storage = $ this ->prophesize (ResourceStorage::class);
@@ -74,9 +71,7 @@ public function testCanNotProcessOtherDriverType()
7471 $ this ->assertEquals (false , $ this ->extractor ->canProcess ($ file ->reveal ()));
7572 }
7673
77- /**
78- * @test
79- */
74+ #[Test]
8075 public function testCanNotProcessUnknownFileType ()
8176 {
8277 $ storage = $ this ->prophesize (ResourceStorage::class);
@@ -89,9 +84,7 @@ public function testCanNotProcessUnknownFileType()
8984 $ this ->assertEquals (false , $ this ->extractor ->canProcess ($ file ->reveal ()));
9085 }
9186
92- /**
93- * @test
94- */
87+ #[Test]
9588 public function testCanNotProcessApplicationFileType ()
9689 {
9790 $ storage = $ this ->prophesize (ResourceStorage::class);
@@ -104,9 +97,7 @@ public function testCanNotProcessApplicationFileType()
10497 $ this ->assertEquals (false , $ this ->extractor ->canProcess ($ file ->reveal ()));
10598 }
10699
107- /**
108- * @test
109- */
100+ #[Test]
110101 public function testCanNotProcessVideoFileType ()
111102 {
112103 $ storage = $ this ->prophesize (ResourceStorage::class);
@@ -119,9 +110,7 @@ public function testCanNotProcessVideoFileType()
119110 $ this ->assertEquals (false , $ this ->extractor ->canProcess ($ file ->reveal ()));
120111 }
121112
122- /**
123- * @test
124- */
113+ #[Test]
125114 public function testCanNotProcessAudioFileType ()
126115 {
127116 $ storage = $ this ->prophesize (ResourceStorage::class);
@@ -134,9 +123,7 @@ public function testCanNotProcessAudioFileType()
134123 $ this ->assertEquals (false , $ this ->extractor ->canProcess ($ file ->reveal ()));
135124 }
136125
137- /**
138- * @test
139- */
126+ #[Test]
140127 public function testCanNotProcessTextFileType ()
141128 {
142129 $ storage = $ this ->prophesize (ResourceStorage::class);
@@ -149,9 +136,7 @@ public function testCanNotProcessTextFileType()
149136 $ this ->assertEquals (false , $ this ->extractor ->canProcess ($ file ->reveal ()));
150137 }
151138
152- /**
153- * @test
154- */
139+ #[Test]
155140 public function testExtractMetaDataIfRequired ()
156141 {
157142 $ file = $ this ->prophesize (File::class);
@@ -166,9 +151,7 @@ public function testExtractMetaDataIfRequired()
166151 );
167152 }
168153
169- /**
170- * @test
171- */
154+ #[Test]
172155 public function testExtractNoMetaDataIfNotRequired ()
173156 {
174157 $ file = $ this ->prophesize (File::class);
0 commit comments