comparison vendor/symfony/phpunit-bridge/TextUI/Command.php @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 1fec387a4317
children
comparison
equal deleted inserted replaced
15:e200cb7efeb3 16:c2387f117808
9 * file that was distributed with this source code. 9 * file that was distributed with this source code.
10 */ 10 */
11 11
12 namespace Symfony\Bridge\PhpUnit\TextUI; 12 namespace Symfony\Bridge\PhpUnit\TextUI;
13 13
14 use PHPUnit\TextUI\Command as BaseCommand; 14 if (class_exists('PHPUnit_Runner_Version') && version_compare(\PHPUnit_Runner_Version::id(), '6.0.0', '<')) {
15 class_alias('Symfony\Bridge\PhpUnit\Legacy\CommandForV5', 'Symfony\Bridge\PhpUnit\TextUI\Command');
16 } else {
17 class_alias('Symfony\Bridge\PhpUnit\Legacy\CommandForV6', 'Symfony\Bridge\PhpUnit\TextUI\Command');
18 }
15 19
16 if (class_exists('PHPUnit_Runner_Version') && version_compare(\PHPUnit_Runner_Version::id(), '6.0.0', '<')) { 20 if (false) {
17 class_alias('Symfony\Bridge\PhpUnit\Legacy\Command', 'Symfony\Bridge\PhpUnit\TextUI\Command'); 21 class Command
18 } else {
19 /**
20 * {@inheritdoc}
21 *
22 * @internal
23 */
24 class Command extends BaseCommand
25 { 22 {
26 /**
27 * {@inheritdoc}
28 */
29 protected function createRunner()
30 {
31 return new TestRunner($this->arguments['loader']);
32 }
33 } 23 }
34 } 24 }