From bdf6956ebed7179ab62c9c76609a3179b6ea78fa Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Fri, 23 Jun 2017 12:59:16 -0500 Subject: [PATCH] Renamed LegacyShellDispatcher to LegacyCommandRunner for clarity --- src/TestSuite/ConsoleIntegrationTestCase.php | 10 +++++----- ...gacyShellDispatcher.php => LegacyCommandRunner.php} | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) rename src/TestSuite/{LegacyShellDispatcher.php => LegacyCommandRunner.php} (95%) diff --git a/src/TestSuite/ConsoleIntegrationTestCase.php b/src/TestSuite/ConsoleIntegrationTestCase.php index a4115623813..62f0145b21f 100644 --- a/src/TestSuite/ConsoleIntegrationTestCase.php +++ b/src/TestSuite/ConsoleIntegrationTestCase.php @@ -67,7 +67,7 @@ class ConsoleIntegrationTestCase extends TestCase */ public function exec($command, array $input = []) { - $dispatcher = $this->_makeDispatcher("bin/cake $command"); + $runner = $this->_makeRunner("bin/cake $command"); $i = 0; foreach ($input as $in) { @@ -77,7 +77,7 @@ public function exec($command, array $input = []) ->will($this->returnValue($in)); } - $this->_exitCode = $dispatcher->dispatch(); + $this->_exitCode = $runner->dispatch(); } /** @@ -146,9 +146,9 @@ public function assertErrorContains($expected) * Builds the appropriate command dispatcher * * @param string $command Command - * @return LegacyShellDispatcher + * @return LegacyCommandRunner */ - protected function _makeDispatcher($command) + protected function _makeRunner($command) { $args = $this->_commandStringToArgs($command); @@ -166,7 +166,7 @@ protected function _makeDispatcher($command) $io = new ConsoleIo($this->_out, $this->_err, $this->_in); - return new LegacyShellDispatcher($args, true, $io); + return new LegacyCommandRunner($args, true, $io); } /** diff --git a/src/TestSuite/LegacyShellDispatcher.php b/src/TestSuite/LegacyCommandRunner.php similarity index 95% rename from src/TestSuite/LegacyShellDispatcher.php rename to src/TestSuite/LegacyCommandRunner.php index adb08beb19e..308879b517f 100644 --- a/src/TestSuite/LegacyShellDispatcher.php +++ b/src/TestSuite/LegacyCommandRunner.php @@ -3,7 +3,7 @@ use Cake\Console\ShellDispatcher; -class LegacyShellDispatcher extends ShellDispatcher +class LegacyCommandRunner extends ShellDispatcher { /** * @var \Cake\Console\ConsoleIo