Skip to content

Commit b18d5f2

Browse files
Add tests
1 parent 5cd77a0 commit b18d5f2

File tree

2 files changed

+278
-0
lines changed

2 files changed

+278
-0
lines changed

tests/unit/Metadata/MetadataCollectionTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,14 @@ public function test_Can_be_filtered_for_IgnoreDeprecations(): void
308308
$this->assertTrue($collection->asArray()[0]->isIgnoreDeprecations());
309309
}
310310

311+
public function test_Can_be_filtered_for_IgnorePhpunitDeprecations(): void
312+
{
313+
$collection = $this->collectionWithOneOfEach()->isIgnorePhpunitDeprecations();
314+
315+
$this->assertCount(1, $collection);
316+
$this->assertTrue($collection->asArray()[0]->isIgnorePhpunitDeprecations());
317+
}
318+
311319
public function test_Can_be_filtered_for_PostCondition(): void
312320
{
313321
$collection = $this->collectionWithOneOfEach()->isPostCondition();
@@ -517,6 +525,7 @@ private function collectionWithOneOfEach(): MetadataCollection
517525
Metadata::excludeStaticPropertyFromBackupOnClass('', ''),
518526
Metadata::groupOnClass(''),
519527
Metadata::ignoreDeprecationsOnClass(),
528+
Metadata::ignorePhpunitDeprecationsOnClass(),
520529
Metadata::postCondition(),
521530
Metadata::preCondition(),
522531
Metadata::preserveGlobalStateOnClass(true),

0 commit comments

Comments
 (0)