public function testCommand() { $cmd = new Command('cmd', 'description', ['cmd1', 'cmd2'], true, 'cmdMethod'); $this->assertSame('cmd', $cmd->getName()); $this->assertSame('description', $cmd->getDescription()); $this->assertSame(['cmd1', 'cmd2'], $cmd->getAliases()); $this->assertTrue($cmd->isDefault()); $this->assertSame('cmdMethod', $cmd->getMethod()); }