Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Apr 2, 2024
1 parent 5cd77a0 commit b18d5f2
Show file tree
Hide file tree
Showing 2 changed files with 278 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/unit/Metadata/MetadataCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,14 @@ public function test_Can_be_filtered_for_IgnoreDeprecations(): void
$this->assertTrue($collection->asArray()[0]->isIgnoreDeprecations());
}

public function test_Can_be_filtered_for_IgnorePhpunitDeprecations(): void
{
$collection = $this->collectionWithOneOfEach()->isIgnorePhpunitDeprecations();

$this->assertCount(1, $collection);
$this->assertTrue($collection->asArray()[0]->isIgnorePhpunitDeprecations());
}

public function test_Can_be_filtered_for_PostCondition(): void
{
$collection = $this->collectionWithOneOfEach()->isPostCondition();
Expand Down Expand Up @@ -517,6 +525,7 @@ private function collectionWithOneOfEach(): MetadataCollection
Metadata::excludeStaticPropertyFromBackupOnClass('', ''),
Metadata::groupOnClass(''),
Metadata::ignoreDeprecationsOnClass(),
Metadata::ignorePhpunitDeprecationsOnClass(),
Metadata::postCondition(),
Metadata::preCondition(),
Metadata::preserveGlobalStateOnClass(true),
Expand Down
Loading

0 comments on commit b18d5f2

Please sign in to comment.