Skip to content

Commit 0f1cbf3

Browse files
minor symfony#61476 [PhpUnitBridge] revert patching of PHPUnit about memleak reports (xabbuh)
This PR was merged into the 7.4 branch. Discussion ---------- [PhpUnitBridge] revert patching of PHPUnit about memleak reports | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT reverts symfony#61469, sebastianbergmann/phpunit@0eae114 is part of PHPUnit 8.5.44, 9.6.25, 10.5.53, 11.5.34 and 12.3.6 Commits ------- b85a79e revert patching of PHPUnit about memleak reports
2 parents b223c40 + b85a79e commit 0f1cbf3

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,6 @@
270270
exit($exit);
271271
}
272272

273-
// Mutate PhptTestCase code
274-
$alteredFile = defined('GLOB_BRACE') ? glob('./src/Runner/{Phpt/,PHPT/Phpt,Phpt}TestCase.php', GLOB_BRACE) : false;
275-
if ($alteredFile && str_contains($alteredCode = file_get_contents($alteredFile[0]), " 'report_memleaks=0',\n")) {
276-
$alteredCode = str_replace(" 'report_memleaks=0',\n", '', $alteredCode);
277-
file_put_contents($alteredFile[0], $alteredCode);
278-
}
279-
280273
// Mutate TestCase code
281274
if (version_compare($PHPUNIT_VERSION, '11.0', '<')) {
282275
$alteredCode = file_get_contents($alteredFile = './src/Framework/TestCase.php');

0 commit comments

Comments
 (0)