Created
May 4, 2018 20:33
-
-
Save kunicmarko20/effe94f5bd3ec9231c68d81cb4a9d5f6 to your computer and use it in GitHub Desktop.
Why `if (false)`? - it's for composer authoritative classmap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/PhpUnit/TextUI/TestRunner.php | |
| namespace Symfony\Bridge\PhpUnit\TextUI; | |
| if (class_exists('PHPUnit_Runner_Version') && version_compare(\PHPUnit_Runner_Version::id(), '6.0.0', '<')) { | |
| class_alias('Symfony\Bridge\PhpUnit\Legacy\TestRunnerForV5', 'Symfony\Bridge\PhpUnit\TextUI\TestRunner'); | |
| } elseif (version_compare(\PHPUnit\Runner\Version::id(), '7.0.0', '<')) { | |
| class_alias('Symfony\Bridge\PhpUnit\Legacy\TestRunnerForV6', 'Symfony\Bridge\PhpUnit\TextUI\TestRunner'); | |
| } else { | |
| class_alias('Symfony\Bridge\PhpUnit\Legacy\TestRunnerForV7', 'Symfony\Bridge\PhpUnit\TextUI\TestRunner'); | |
| } | |
| if (false) { | |
| class TestRunner | |
| { | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment