Skip to content

Commit

Permalink
add support for PHPUnit 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondřej Ešler committed Jun 20, 2024
1 parent 3afa6ea commit a4882e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"require": {
"php": ">=8.1",
"phpunit/phpunit": "^9.5||^10.0",
"phpunit/phpunit": "^9.5||^10.0||^11.0",
"symfony/yaml": "^6.0"
},
"suggest": {
Expand Down
2 changes: 2 additions & 0 deletions src/DbFixturesTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use PDO;
use stdClass;
use Symfony\Component\Yaml\Yaml;
use PHPUnit\Framework\Attributes\Before;
use PHPUnit\Metadata\Annotation\Parser\Registry;
use PHPUnit\Util\Test;

Expand Down Expand Up @@ -37,6 +38,7 @@ abstract protected function getConnection(string $connectionName) : mixed;
*
* @before
*/
#[Before]
public function loadFixturesByAnnotations(): void {
if (method_exists(Test::class, 'parseTestMethodAnnotations')) {
$annotations = $annotations = Test::parseTestMethodAnnotations(
Expand Down

0 comments on commit a4882e6

Please sign in to comment.