Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9354958

Browse files
committed
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 ------- 5134de5 Added compatibility with PHPunit 9.5
2 parents d0d0ee3 + 5134de5 commit 9354958

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

phpunit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if (!getenv('SYMFONY_PHPUNIT_VERSION')) {
1313
} elseif (\PHP_VERSION_ID < 70300) {
1414
putenv('SYMFONY_PHPUNIT_VERSION=8.5');
1515
} else {
16-
putenv('SYMFONY_PHPUNIT_VERSION=9.4');
16+
putenv('SYMFONY_PHPUNIT_VERSION=9.5');
1717
}
1818
}
1919
if (!getenv('SYMFONY_PATCH_TYPE_DECLARATIONS')) {

src/Symfony/Bridge/PhpUnit/Legacy/CoverageListenerTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function startTest($test)
4242
return;
4343
}
4444

45-
$annotations = $test->getAnnotations();
45+
$annotations = Test::parseTestMethodAnnotations(\get_class($test), $test->getName(false));
4646

4747
$ignoredAnnotations = ['covers', 'coversDefaultClass', 'coversNothing'];
4848

src/Symfony/Component/Security/phpunit.xml.dist

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
<testsuites>
1616
<testsuite name="Symfony Security Component Test Suite">
17-
<directory>./Tests/</directory>
1817
<directory>./*/Tests/</directory>
1918
</testsuite>
2019
</testsuites>
@@ -23,8 +22,6 @@
2322
<whitelist>
2423
<directory>./</directory>
2524
<exclude>
26-
<directory>./Resources</directory>
27-
<directory>./Tests</directory>
2825
<directory>./vendor</directory>
2926
<directory>./*/Resources</directory>
3027
<directory>./*/Tests</directory>

0 commit comments

Comments
 (0)