Fix CS errors.

This commit is contained in:
ADmad 2014-07-27 12:54:15 +05:30
parent 9e21d048ce
commit 4e52941f59
2 changed files with 13 additions and 13 deletions

View file

@ -416,10 +416,10 @@ class ConsoleOptionParser {
* @param string $name The subcommand name to remove. * @param string $name The subcommand name to remove.
* @return $this * @return $this
*/ */
public function removeSubcommand($name) { public function removeSubcommand($name) {
unset($this->_subcommands[$name]); unset($this->_subcommands[$name]);
return $this; return $this;
} }
/** /**
* Add multiple subcommands at once. * Add multiple subcommands at once.

View file

@ -481,15 +481,15 @@ class ConsoleOptionParserTest extends CakeTestCase {
* *
* @return void * @return void
*/ */
public function testRemoveSubcommand() { public function testRemoveSubcommand() {
$parser = new ConsoleOptionParser('test', false); $parser = new ConsoleOptionParser('test', false);
$parser->addSubcommand(new ConsoleInputSubcommand('test')); $parser->addSubcommand(new ConsoleInputSubcommand('test'));
$result = $parser->subcommands(); $result = $parser->subcommands();
$this->assertEquals(1, count($result)); $this->assertEquals(1, count($result));
$parser->removeSubcommand('test'); $parser->removeSubcommand('test');
$result = $parser->subcommands(); $result = $parser->subcommands();
$this->assertEquals(0, count($result), 'Remove a subcommand does not work'); $this->assertEquals(0, count($result), 'Remove a subcommand does not work');
} }
/** /**
* test adding multiple subcommands * test adding multiple subcommands