mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix CS errors.
This commit is contained in:
parent
9e21d048ce
commit
4e52941f59
2 changed files with 13 additions and 13 deletions
|
@ -416,10 +416,10 @@ class ConsoleOptionParser {
|
|||
* @param string $name The subcommand name to remove.
|
||||
* @return $this
|
||||
*/
|
||||
public function removeSubcommand($name) {
|
||||
unset($this->_subcommands[$name]);
|
||||
return $this;
|
||||
}
|
||||
public function removeSubcommand($name) {
|
||||
unset($this->_subcommands[$name]);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add multiple subcommands at once.
|
||||
|
|
|
@ -481,15 +481,15 @@ class ConsoleOptionParserTest extends CakeTestCase {
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testRemoveSubcommand() {
|
||||
$parser = new ConsoleOptionParser('test', false);
|
||||
$parser->addSubcommand(new ConsoleInputSubcommand('test'));
|
||||
$result = $parser->subcommands();
|
||||
$this->assertEquals(1, count($result));
|
||||
$parser->removeSubcommand('test');
|
||||
$result = $parser->subcommands();
|
||||
$this->assertEquals(0, count($result), 'Remove a subcommand does not work');
|
||||
}
|
||||
public function testRemoveSubcommand() {
|
||||
$parser = new ConsoleOptionParser('test', false);
|
||||
$parser->addSubcommand(new ConsoleInputSubcommand('test'));
|
||||
$result = $parser->subcommands();
|
||||
$this->assertEquals(1, count($result));
|
||||
$parser->removeSubcommand('test');
|
||||
$result = $parser->subcommands();
|
||||
$this->assertEquals(0, count($result), 'Remove a subcommand does not work');
|
||||
}
|
||||
|
||||
/**
|
||||
* test adding multiple subcommands
|
||||
|
|
Loading…
Reference in a new issue