55
66use LargeArrayBuffer \LargeArrayBuffer ;
77use PHPUnit \Framework \TestCase ;
8+ use PHPUnit \Framework \Attributes \DataProvider ;
89
910/**
1011 * @author Andreas Wahlen
@@ -58,7 +59,7 @@ public static function provideConfig(): \Generator {
5859 /**
5960 * @dataProvider provideConfig
6061 */
61- // #[DataProvider('provideConfig')]
62+ #[DataProvider('provideConfig ' )]
6263 public function testReadWrite (int $ serializer , int $ compression ): void {
6364 $ o = self ::getObject ();
6465 $ buf = new LargeArrayBuffer (serializer: $ serializer , compression: $ compression );
@@ -71,7 +72,7 @@ public function testReadWrite(int $serializer, int $compression): void {
7172 /**
7273 * @dataProvider provideConfig
7374 */
74- // #[DataProvider('provideConfig')]
75+ #[DataProvider('provideConfig ' )]
7576 public function testLoop (int $ serializer , int $ compression ): void {
7677 $ count = 1500 ;
7778 $ buf = new LargeArrayBuffer (serializer: $ serializer , compression: $ compression );
@@ -116,6 +117,7 @@ public static function provideItems(): array {
116117 /**
117118 * @dataProvider provideItems
118119 */
120+ #[DataProvider('provideItems ' )]
119121 public function testToArray (array $ items ): void {
120122 $ buf = new LargeArrayBuffer ();
121123 foreach ($ items as $ item ){
@@ -127,6 +129,7 @@ public function testToArray(array $items): void {
127129 /**
128130 * @dataProvider provideItems
129131 */
132+ #[DataProvider('provideItems ' )]
130133 public function testToFixedArray (array $ items ): void {
131134 $ buf = new LargeArrayBuffer ();
132135 foreach ($ items as $ item ){
@@ -138,6 +141,7 @@ public function testToFixedArray(array $items): void {
138141 /**
139142 * @dataProvider provideItems
140143 */
144+ #[DataProvider('provideItems ' )]
141145 public function testToGenerator (array $ items ): void {
142146 $ buf = new LargeArrayBuffer ();
143147 foreach ($ items as $ item ){
0 commit comments