diff --git a/tests/EncodingTest.php b/tests/EncodingTest.php index eac769d..abddd1f 100644 --- a/tests/EncodingTest.php +++ b/tests/EncodingTest.php @@ -5,6 +5,7 @@ use Danny50610\BpeTokeniser\Encoding; use Danny50610\BpeTokeniser\EncodingFactory; use InvalidArgumentException; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use ValueError; @@ -46,9 +47,7 @@ public function testMaxToeknMismatch() new Encoding('test', $mergeableRanks, '', ['c' => 10], 3); } - /** - * @dataProvider textDataProvider - */ + #[DataProvider('textDataProvider')] public function testEncodeAndDecode($encodingName, $testCaseList) { $enc = EncodingFactory::createByEncodingName($encodingName); @@ -124,9 +123,7 @@ public static function textDataProvider() ]; } - /** - * @dataProvider specialDataProvider - */ + #[DataProvider('specialDataProvider')] public function testEncodeWithSpecial($encodingName, $testCaseList) { $enc = EncodingFactory::createByEncodingName($encodingName);