Skip to content

Commit

Permalink
Fixed dataprovider deprecations introduced in phpunit 10.5.17
Browse files Browse the repository at this point in the history
  • Loading branch information
peldax committed Jun 23, 2024
1 parent 3b612fc commit 309bf55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Annotated/Functional/Driver/Common/BaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ public function getDriver(): Driver

public static function singularReadersProvider(): \Traversable
{
yield ['Annotation reader' => new AnnotationReader()];
yield ['Attribute reader' => new AttributeReader()];
yield ['reader' => new AnnotationReader()];
yield ['reader' => new AttributeReader()];
}

public static function allReadersProvider(): \Traversable
{
yield from static::singularReadersProvider();
yield ['Selective reader' => new SelectiveReader([new AttributeReader(), new AnnotationReader()])];
yield ['reader' => new SelectiveReader([new AttributeReader(), new AnnotationReader()])];
}

protected function getDatabase(): Database
Expand Down

0 comments on commit 309bf55

Please sign in to comment.