Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save kunicmarko20/effe94f5bd3ec9231c68d81cb4a9d5f6 to your computer and use it in GitHub Desktop.

Select an option

Save kunicmarko20/effe94f5bd3ec9231c68d81cb4a9d5f6 to your computer and use it in GitHub Desktop.
Why `if (false)`? - it's for composer authoritative classmap
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