Skip to content

Commit c4148a5

Browse files
authored
Upgrade PHPUnit to 10.5 (#59)
1 parent 28fb634 commit c4148a5

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@
2828
},
2929
"require-dev": {
3030
"doctrine/collections": "^1.6.8|^2.2.1",
31-
"phpunit/phpunit": "^9.6.19",
32-
"symfony/error-handler": "^5.4|^6.0|^7.0",
33-
"symfony/phpunit-bridge": ">= 7.0"
31+
"phpunit/phpunit": "^10.5",
32+
"symfony/error-handler": "^5.4|^6.0|^7.0"
3433
},
3534
"autoload": {
3635
"psr-4": {

phpunit.xml.dist

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd" bootstrap="tests/bootstrap.php">
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="tests/bootstrap.php"
6+
colors="true"
7+
displayDetailsOnAllIssues="true"
8+
>
9+
<source ignoreSuppressionOfDeprecations="true">
10+
<include>
11+
<directory>src</directory>
12+
</include>
13+
</source>
314
<testsuites>
415
<testsuite name="Library Test Suite">
516
<directory>tests/</directory>
@@ -8,11 +19,7 @@
819
<php>
920
<server name="KERNEL_CLASS" value="Webfactory\Bundle\PolyglotBundle\Tests\Fixtures\TestKernel" />
1021
<server name="KERNEL_DIR" value="tests/Fixtures/" />
11-
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0" />
1222
<env name="DOCTRINE_DEPRECATIONS" value="trigger" />
1323
<server name="SHELL_VERBOSITY" value="-1" />
1424
</php>
15-
<listeners>
16-
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
17-
</listeners>
1825
</phpunit>

tests/ORMTestInfrastructure/ORMInfrastructureTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ public function testSchemaResults(array $classes, callable $validator): void
508508
$validator($schemaTool->getSchemaFromMetadata($infrastructure->getMetadataForSupportedEntities()));
509509
}
510510

511-
public function resolverFixtures()
511+
public static function resolverFixtures()
512512
{
513513
yield 'single entity' => [
514514
[DependencyResolverFixtures\SingleEntity\Entity::class],

0 commit comments

Comments
 (0)