Skip to content

Commit b0278b8

Browse files
janikfumichaelzangerle
authored andcommitted
misc(#62): Update extensions to PHPUnit 10
1 parent 097cbe9 commit b0278b8

File tree

4 files changed

+28
-17
lines changed

4 files changed

+28
-17
lines changed

composer.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fusonic/http-kernel-bundle",
33
"description": "Symfony bundle with extensions for Symfony's HttpKernel",
4-
"version": "1.2.0",
4+
"version": "1.3.0",
55
"type": "library",
66
"license": "MIT",
77
"authors": [
@@ -40,15 +40,13 @@
4040
},
4141
"require-dev": {
4242
"friendsofphp/php-cs-fixer": "^3.40",
43-
"phpstan/extension-installer": "^1.3",
4443
"phpstan/phpstan": "^1.10",
4544
"phpstan/phpstan-phpunit": "^1.3",
4645
"phpstan/phpstan-strict-rules": "^1.5",
4746
"phpstan/phpstan-symfony": "^1.3",
48-
"phpunit/phpunit": "^9.6",
47+
"phpunit/phpunit": "^10.5",
4948
"roave/security-advisories": "dev-latest",
5049
"symfony/cache": "^6.3 || ^7.0",
51-
"symfony/phpunit-bridge": "^6.3 || ^7.0",
5250
"tomasvotruba/type-coverage": "^0.2"
5351
},
5452
"scripts": {
@@ -61,7 +59,6 @@
6159
"config": {
6260
"sort-packages": true,
6361
"allow-plugins": {
64-
"phpstan/extension-installer": true
6562
}
6663
}
6764
}

phpstan.neon

+8
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,11 @@ parameters:
99
param_type: 100
1010
property_type: 100
1111
print_suggestions: false
12+
13+
includes:
14+
- vendor/phpstan/phpstan-phpunit/extension.neon
15+
- vendor/phpstan/phpstan-symfony/extension.neon
16+
- vendor/phpstan/phpstan-symfony/rules.neon
17+
- vendor/phpstan/phpstan-strict-rules/rules.neon
18+
- vendor/tomasvotruba/type-coverage/config/extension.neon
19+

phpunit.xml.dist

+17-11
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@
22

33
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
44
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
6-
backupGlobals="false"
5+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
76
colors="true"
87
bootstrap="vendor/autoload.php"
9-
convertDeprecationsToExceptions="false"
8+
displayDetailsOnTestsThatTriggerDeprecations="true"
9+
displayDetailsOnTestsThatTriggerWarnings="true"
10+
displayDetailsOnTestsThatTriggerErrors="true"
11+
failOnWarning="true"
12+
failOnRisky="true"
1013
>
14+
1115
<php>
1216
<ini name="display_errors" value="1"/>
1317
<ini name="error_reporting" value="-1"/>
1418
<server name="SHELL_VERBOSITY" value="-1"/>
15-
<server name="SYMFONY_PHPUNIT_REMOVE" value=""/>
16-
<server name="SYMFONY_PHPUNIT_VERSION" value="9.6"/>
1719
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=0"/>
20+
<env name="APP_DEBUG" value="false" />
1821
</php>
1922

2023
<testsuites>
@@ -23,13 +26,16 @@
2326
</testsuite>
2427
</testsuites>
2528

26-
<coverage processUncoveredFiles="true">
29+
<source ignoreSuppressionOfDeprecations="true"
30+
ignoreSuppressionOfPhpDeprecations="true"
31+
ignoreSuppressionOfErrors="true"
32+
ignoreSuppressionOfNotices="true"
33+
ignoreSuppressionOfPhpNotices="true"
34+
ignoreSuppressionOfWarnings="true"
35+
ignoreSuppressionOfPhpWarnings="true">
2736
<include>
28-
<directory suffix=".php">src</directory>
37+
<directory>src</directory>
2938
</include>
30-
</coverage>
39+
</source>
3140

32-
<listeners>
33-
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
34-
</listeners>
3541
</phpunit>

tests/Controller/RequestDtoResolverTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ public function testValidValueForNotForcingRouteParamIntegers(): void
665665
/**
666666
* @return array<array<mixed>>
667667
*/
668-
public function errorTestData(): array
668+
public static function errorTestData(): array
669669
{
670670
return [
671671
[

0 commit comments

Comments
 (0)