Skip to content

Commit

Permalink
Upgrade to PHPUnit 11
Browse files Browse the repository at this point in the history
The symfony/phpunit-bridge listener we were using is replaced by native
features.
  • Loading branch information
greg0ire committed Nov 30, 2024
1 parent 347d92d commit 105ff1d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
"require-dev": {
"doctrine/coding-standard": "^12",
"phpstan/phpstan": "^2",
"phpunit/phpunit": "^9.6.13",
"symfony/phpunit-bridge": "^6.3.6"
"phpunit/phpunit": "^10.5.38 || ^11"
},
"conflict": {
"doctrine/dbal": "< 3"
Expand Down
22 changes: 14 additions & 8 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit colors="true" bootstrap="vendor/autoload.php">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
colors="true"
bootstrap="vendor/autoload.php"
displayDetailsOnTestsThatTriggerDeprecations="true"
>
<testsuites>
<testsuite name="DoctrineFixturesBundle for the Symfony Framework">
<directory>./tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>

<source ignoreSuppressionOfDeprecations="true">
<include>
<directory>src</directory>
</whitelist>
</filter>
</include>
</source>

<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
</listeners>
<php>
<server name="DOCTRINE_DEPRECATIONS" value="trigger"/>
</php>
</phpunit>

0 comments on commit 105ff1d

Please sign in to comment.