@@ -331,6 +331,14 @@ public function test_Can_be_filtered_for_IgnorePhpunitDeprecations(): void
331
331
$ this ->assertTrue ($ collection ->asArray ()[0 ]->isIgnorePhpunitDeprecations ());
332
332
}
333
333
334
+ public function test_Can_be_filtered_for_IgnorePhpunitWarnings (): void
335
+ {
336
+ $ collection = $ this ->collectionWithOneOfEach ()->isIgnorePhpunitWarnings ();
337
+
338
+ $ this ->assertCount (1 , $ collection );
339
+ $ this ->assertTrue ($ collection ->asArray ()[0 ]->isIgnorePhpunitWarnings ());
340
+ }
341
+
334
342
public function test_Can_be_filtered_for_PostCondition (): void
335
343
{
336
344
$ collection = $ this ->collectionWithOneOfEach ()->isPostCondition ();
@@ -563,14 +571,6 @@ public function test_Can_be_filtered_for_WithoutErrorHandler(): void
563
571
$ this ->assertTrue ($ collection ->asArray ()[0 ]->isWithoutErrorHandler ());
564
572
}
565
573
566
- public function test_Can_be_filtered_for_IgnorePhpunitWarnings (): void
567
- {
568
- $ collection = $ this ->collectionWithOneOfEach ()->isIgnorePhpunitWarnings ();
569
-
570
- $ this ->assertCount (1 , $ collection );
571
- $ this ->assertTrue ($ collection ->asArray ()[0 ]->isIgnorePhpunitWarnings ());
572
- }
573
-
574
574
private function collectionWithOneOfEach (): MetadataCollection
575
575
{
576
576
return MetadataCollection::fromArray (
@@ -599,6 +599,7 @@ private function collectionWithOneOfEach(): MetadataCollection
599
599
Metadata::groupOnClass ('' ),
600
600
Metadata::ignoreDeprecationsOnClass (),
601
601
Metadata::ignorePhpunitDeprecationsOnClass (),
602
+ Metadata::ignorePhpunitWarnings (null ),
602
603
Metadata::postCondition (0 ),
603
604
Metadata::preCondition (0 ),
604
605
Metadata::preserveGlobalStateOnClass (true ),
@@ -638,7 +639,6 @@ private function collectionWithOneOfEach(): MetadataCollection
638
639
Metadata::usesMethod ('' , '' ),
639
640
Metadata::withEnvironmentVariableOnClass ('foo ' , 'bar ' ),
640
641
Metadata::withoutErrorHandler (),
641
- Metadata::ignorePhpunitWarnings (null ),
642
642
],
643
643
);
644
644
}
0 commit comments