Skip to content

Commit 2bc7977

Browse files
authored
Update to PHPUnit 10 (#81)
1 parent 1597f53 commit 2bc7977

2 files changed

Lines changed: 17 additions & 13 deletions

File tree

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@
3737
"require-dev": {
3838
"doctrine/common": "^2.0|^3.1",
3939
"doctrine/doctrine-bundle": "^2.0",
40-
"phpunit/phpunit": "^9.6.18",
40+
"phpunit/phpunit": "^10.5.58",
4141
"symfony/error-handler": "^6.4|^7.0",
4242
"symfony/framework-bundle": "^5.4|^6.4|^7.0",
43-
"symfony/phpunit-bridge": ">= 7.0",
4443
"symfony/yaml": "^5.4|^6.4|^7.0",
4544
"webfactory/doctrine-orm-test-infrastructure": "^1.14"
4645
},

phpunit.xml.dist

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
4-
bootstrap="vendor/autoload.php"
5-
colors="true">
6-
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
5+
bootstrap="vendor/autoload.php"
6+
colors="true"
7+
cacheDirectory=".phpunit.cache"
8+
displayDetailsOnTestsThatTriggerDeprecations="false"
9+
displayDetailsOnPhpunitDeprecations="true"
10+
failOnDeprecation="false"
11+
failOnPhpunitDeprecation="true"
12+
>
13+
<source ignoreSuppressionOfDeprecations="true">
14+
<include>
15+
<directory>src</directory>
16+
</include>
17+
</source>
718
<testsuites>
819
<testsuite name="Bundle Test Suite">
920
<directory>tests</directory>
1021
</testsuite>
1122
</testsuites>
1223
<php>
1324
<server name="KERNEL_CLASS" value="Webfactory\Bundle\PolyglotBundle\Tests\Fixtures\TestKernel" />
14-
<server name="KERNEL_DIR" value="tests/Fixtures/" />
15-
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0" />
1625
<env name="DOCTRINE_DEPRECATIONS" value="trigger" />
1726
<server name="SHELL_VERBOSITY" value="-1" />
1827
</php>
19-
<listeners>
20-
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
21-
</listeners>
22-
2328
</phpunit>

0 commit comments

Comments
 (0)