diff --git a/Tests/Functional/Utility/FileUtilityTest.php b/Tests/Functional/Utility/FileUtilityTest.php index ea42d82..6762800 100644 --- a/Tests/Functional/Utility/FileUtilityTest.php +++ b/Tests/Functional/Utility/FileUtilityTest.php @@ -57,10 +57,11 @@ class FileUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase /** * @test - * @expectedException \InvalidArgumentException */ public function concatenateWithEmptyTargetFileNameThrowsException() { + $this->expectException(\InvalidArgumentException::class); + $this->subject->concatenate('', ['foo.txt']); }