Skip to content

Commit ecece36

Browse files
Use newer PHPUnit versions
1 parent 7d51475 commit ecece36

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

.php-cs-fixer.dist.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
$finder = (new PhpCsFixer\Finder())
66
->in(__DIR__)
77
->exclude(['tests/Application/var'])
8-
->notName('bundles.php');
8+
->notName('bundles.php')
9+
->notName('reference.php');
910

1011
return (new PhpCsFixer\Config())
1112
->setRiskyAllowed(true)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"phpstan/phpstan-phpunit": "^2.0",
3131
"phpstan/phpstan-symfony": "^2.",
3232
"phpstan/phpstan-webmozart-assert": "^2.0",
33-
"phpunit/phpunit": "^9.5",
33+
"phpunit/phpunit": "^9.5 || ^10.0 || ^11.0 || ^12.0 || ^13.0",
3434
"qossmic/deptrac-shim": "^0.24.0 || ^1.0",
3535
"rector/rector": "^2.0",
3636
"symfony/browser-kit": "^5.4 || ^6.0 || ^7.0 || ^8.0",

phpunit.xml.dist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
</testsuite>
2828
</testsuites>
2929

30+
<source>
31+
<include>
32+
<directory>src/</directory>
33+
</include>
34+
</source>
35+
3036
<coverage processUncoveredFiles="true">
3137
<include>
3238
<directory suffix=".php">src</directory>

tests/Application/Kernel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public function registerBundles(): iterable
3939
];
4040

4141
foreach ($bundles as $class => $envs) {
42+
// @phpstan-ignore-next-line offsetAccess.invalidOffset
4243
if ($envs[$this->environment] ?? $envs['all'] ?? false) {
4344
yield new $class();
4445
}

tests/Application/config/reference.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
declare(strict_types=1);
4-
53
// This file is auto-generated and is for apps only. Bundles SHOULD NOT rely on its content.
64

75
namespace Symfony\Component\DependencyInjection\Loader\Configurator;

0 commit comments

Comments
 (0)