bug #39331 [PhpUnitBridge] Fixed PHPunit 9.5 compatibility (wouterj)
This PR was merged into the 4.4 branch.
Discussion
----------
[PhpUnitBridge] Fixed PHPunit 9.5 compatibility
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix #39329
| License | MIT
| Doc PR | -
Let's see if this works 🍀
#SymfonyHackday
Commits
-------
5134de52f1
Added compatibility with PHPunit 9.5
This commit is contained in:
commit
935495868a
2
phpunit
2
phpunit
@ -13,7 +13,7 @@ if (!getenv('SYMFONY_PHPUNIT_VERSION')) {
|
|||||||
} elseif (\PHP_VERSION_ID < 70300) {
|
} elseif (\PHP_VERSION_ID < 70300) {
|
||||||
putenv('SYMFONY_PHPUNIT_VERSION=8.5');
|
putenv('SYMFONY_PHPUNIT_VERSION=8.5');
|
||||||
} else {
|
} else {
|
||||||
putenv('SYMFONY_PHPUNIT_VERSION=9.4');
|
putenv('SYMFONY_PHPUNIT_VERSION=9.5');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!getenv('SYMFONY_PATCH_TYPE_DECLARATIONS')) {
|
if (!getenv('SYMFONY_PATCH_TYPE_DECLARATIONS')) {
|
||||||
|
@ -42,7 +42,7 @@ class CoverageListenerTrait
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$annotations = $test->getAnnotations();
|
$annotations = Test::parseTestMethodAnnotations(\get_class($test), $test->getName(false));
|
||||||
|
|
||||||
$ignoredAnnotations = ['covers', 'coversDefaultClass', 'coversNothing'];
|
$ignoredAnnotations = ['covers', 'coversDefaultClass', 'coversNothing'];
|
||||||
|
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
|
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="Symfony Security Component Test Suite">
|
<testsuite name="Symfony Security Component Test Suite">
|
||||||
<directory>./Tests/</directory>
|
|
||||||
<directory>./*/Tests/</directory>
|
<directory>./*/Tests/</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
@ -23,8 +22,6 @@
|
|||||||
<whitelist>
|
<whitelist>
|
||||||
<directory>./</directory>
|
<directory>./</directory>
|
||||||
<exclude>
|
<exclude>
|
||||||
<directory>./Resources</directory>
|
|
||||||
<directory>./Tests</directory>
|
|
||||||
<directory>./vendor</directory>
|
<directory>./vendor</directory>
|
||||||
<directory>./*/Resources</directory>
|
<directory>./*/Resources</directory>
|
||||||
<directory>./*/Tests</directory>
|
<directory>./*/Tests</directory>
|
||||||
|
Reference in New Issue
Block a user