diff options
Diffstat (limited to 'tests/lib/UtilTest.php')
-rw-r--r-- | tests/lib/UtilTest.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/lib/UtilTest.php b/tests/lib/UtilTest.php index dcdb3d951b2..6d995be2434 100644 --- a/tests/lib/UtilTest.php +++ b/tests/lib/UtilTest.php @@ -341,9 +341,7 @@ class UtilTest extends \Test\TestCase { $this->assertEquals('🙈', Util::shortenMultibyteString('🙈🙊🙉', 16, 2)); } - /** - * @dataProvider humanFileSizeProvider - */ + #[\PHPUnit\Framework\Attributes\DataProvider('humanFileSizeProvider')] public function testHumanFileSize($expected, $input): void { $result = Util::humanFileSize($input); $this->assertEquals($expected, $result); @@ -361,9 +359,7 @@ class UtilTest extends \Test\TestCase { ]; } - /** - * @dataProvider providesComputerFileSize - */ + #[\PHPUnit\Framework\Attributes\DataProvider('providesComputerFileSize')] public function testComputerFileSize($expected, $input): void { $result = Util::computerFileSize($input); $this->assertEquals($expected, $result); |