8
8
use GuzzleHttp \Psr7 \Response ;
9
9
use GuzzleHttp \Psr7 \StreamWrapper ;
10
10
use org \bovigo \vfs \vfsStream ;
11
+ use PHPUnit \Framework \Attributes \Group ;
11
12
use PHPUnit \Framework \TestCase ;
12
13
use Psr \Http \Message \StreamInterface ;
13
14
use RuntimeException ;
@@ -423,9 +424,7 @@ public function testAddFileFromPsr7Stream(): void
423
424
$ this ->assertStringEqualsFile ($ tmpDir . '/sample.json ' , $ body );
424
425
}
425
426
426
- /**
427
- * @group slow
428
- */
427
+ #[Group('slow ' )]
429
428
public function testAddLargeFileFromPsr7Stream (): void
430
429
{
431
430
$ zip = new ZipStream (
@@ -464,9 +463,7 @@ public function testContinueFinishedZip(): void
464
463
$ zip ->addFile ('sample.txt ' , '1234 ' );
465
464
}
466
465
467
- /**
468
- * @group slow
469
- */
466
+ #[Group('slow ' )]
470
467
public function testManyFilesWithoutZip64 (): void
471
468
{
472
469
$ this ->expectException (OverflowException::class);
@@ -484,9 +481,7 @@ public function testManyFilesWithoutZip64(): void
484
481
$ zip ->finish ();
485
482
}
486
483
487
- /**
488
- * @group slow
489
- */
484
+ #[Group('slow ' )]
490
485
public function testManyFilesWithZip64 (): void
491
486
{
492
487
$ zip = new ZipStream (
@@ -508,9 +503,7 @@ public function testManyFilesWithZip64(): void
508
503
$ this ->assertSame (count ($ files ), 0x10000 );
509
504
}
510
505
511
- /**
512
- * @group slow
513
- */
506
+ #[Group('slow ' )]
514
507
public function testLongZipWithout64 (): void
515
508
{
516
509
$ this ->expectException (OverflowException::class);
@@ -533,9 +526,7 @@ public function testLongZipWithout64(): void
533
526
}
534
527
}
535
528
536
- /**
537
- * @group slow
538
- */
529
+ #[Group('slow ' )]
539
530
public function testLongZipWith64 (): void
540
531
{
541
532
$ zip = new ZipStream (
@@ -563,9 +554,7 @@ public function testLongZipWith64(): void
563
554
$ this ->assertSame (['sample0 ' , 'sample1 ' , 'sample2 ' , 'sample3 ' ], $ files );
564
555
}
565
556
566
- /**
567
- * @group slow
568
- */
557
+ #[Group('slow ' )]
569
558
public function testAddLargeFileWithoutZip64WithZeroHeader (): void
570
559
{
571
560
$ this ->expectException (OverflowException::class);
@@ -586,9 +575,7 @@ public function testAddLargeFileWithoutZip64WithZeroHeader(): void
586
575
);
587
576
}
588
577
589
- /**
590
- * @group slow
591
- */
578
+ #[Group('slow ' )]
592
579
public function testAddsZip64HeaderWhenNeeded (): void
593
580
{
594
581
$ zip = new ZipStream (
@@ -617,9 +604,7 @@ public function testAddsZip64HeaderWhenNeeded(): void
617
604
));
618
605
}
619
606
620
- /**
621
- * @group slow
622
- */
607
+ #[Group('slow ' )]
623
608
public function testDoesNotAddZip64HeaderWhenNotNeeded (): void
624
609
{
625
610
$ zip = new ZipStream (
@@ -648,9 +633,7 @@ public function testDoesNotAddZip64HeaderWhenNotNeeded(): void
648
633
));
649
634
}
650
635
651
- /**
652
- * @group slow
653
- */
636
+ #[Group('slow ' )]
654
637
public function testAddLargeFileWithoutZip64WithoutZeroHeader (): void
655
638
{
656
639
$ this ->expectException (OverflowException::class);
@@ -1157,9 +1140,7 @@ public function testExecuteSimulationBeforeFinish(): void
1157
1140
$ zip ->executeSimulation ();
1158
1141
}
1159
1142
1160
- /**
1161
- * @group slow
1162
- */
1143
+ #[Group('slow ' )]
1163
1144
public function testSimulationWithLargeZip64AndZeroHeader (): void
1164
1145
{
1165
1146
$ zip = new ZipStream (
0 commit comments