comparison vendor/symfony/phpunit-bridge/TextUI/Command.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children c2387f117808
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
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 if (!class_exists('PHPUnit_TextUI_Command')) { 14 use PHPUnit\TextUI\Command as BaseCommand;
15 return;
16 }
17 15
18 /** 16 if (class_exists('PHPUnit_Runner_Version') && version_compare(\PHPUnit_Runner_Version::id(), '6.0.0', '<')) {
19 * {@inheritdoc} 17 class_alias('Symfony\Bridge\PhpUnit\Legacy\Command', 'Symfony\Bridge\PhpUnit\TextUI\Command');
20 */ 18 } else {
21 class Command extends \PHPUnit_TextUI_Command
22 {
23 /** 19 /**
24 * {@inheritdoc} 20 * {@inheritdoc}
21 *
22 * @internal
25 */ 23 */
26 protected function createRunner() 24 class Command extends BaseCommand
27 { 25 {
28 return new TestRunner($this->arguments['loader']); 26 /**
27 * {@inheritdoc}
28 */
29 protected function createRunner()
30 {
31 return new TestRunner($this->arguments['loader']);
32 }
29 } 33 }
30 } 34 }