Skip to content

Commit 215a205

Browse files
Add missing test
1 parent ad172d8 commit 215a205

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/unit/Metadata/MetadataCollectionTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,14 @@ public function test_Can_be_filtered_for_WithoutErrorHandler(): void
563563
$this->assertTrue($collection->asArray()[0]->isWithoutErrorHandler());
564564
}
565565

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+
566574
private function collectionWithOneOfEach(): MetadataCollection
567575
{
568576
return MetadataCollection::fromArray(
@@ -630,6 +638,7 @@ private function collectionWithOneOfEach(): MetadataCollection
630638
Metadata::usesMethod('', ''),
631639
Metadata::withEnvironmentVariableOnClass('foo', 'bar'),
632640
Metadata::withoutErrorHandler(),
641+
Metadata::ignorePhpunitWarnings(null),
633642
],
634643
);
635644
}

0 commit comments

Comments
 (0)