Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3e4a969

Browse filesBrowse files
Fix PhpUnit 8 runner compatibility
1 parent 205b0ba commit 3e4a969
Copy full SHA for 3e4a969

File tree

Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed

‎src/Symfony/Bridge/PhpUnit/bin/simple-phpunit

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/bin/simple-phpunit
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,18 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
9090
if ($exit) {
9191
exit($exit);
9292
}
93+
// Fix compatibility to custom TestRunner for PhpUnit 8 compatibility
94+
if ($PHPUNIT_VERSION >= 8.0) {
95+
$testRunnerFile = 'src/TextUI/TestRunner.php';
96+
file_put_contents(
97+
$testRunnerFile,
98+
str_replace(
99+
'final class TestRunner',
100+
'class TestRunner',
101+
file_get_contents($testRunnerFile)
102+
)
103+
);
104+
}
93105
file_put_contents('phpunit', <<<'EOPHP'
94106
<?php
95107

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.