Skip to content

Commit

Permalink
Renamed LegacyShellDispatcher to LegacyCommandRunner for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyharris committed Jun 23, 2017
1 parent 0969e51 commit bdf6956
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/TestSuite/ConsoleIntegrationTestCase.php
Expand Up @@ -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) {
Expand All @@ -77,7 +77,7 @@ public function exec($command, array $input = [])
->will($this->returnValue($in));
}

$this->_exitCode = $dispatcher->dispatch();
$this->_exitCode = $runner->dispatch();
}

/**
Expand Down Expand Up @@ -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);

Expand All @@ -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);
}

/**
Expand Down
Expand Up @@ -3,7 +3,7 @@

use Cake\Console\ShellDispatcher;

class LegacyShellDispatcher extends ShellDispatcher
class LegacyCommandRunner extends ShellDispatcher
{
/**
* @var \Cake\Console\ConsoleIo
Expand Down

0 comments on commit bdf6956

Please sign in to comment.