/** * Tests the {@link phpucConsoleInputDefinition::addCommand()} method with * a new command. * * @return void */ public function testAddCommand() { $definition = new phpucConsoleInputDefinition(); $this->assertFalse($definition->hasCommand('mapi')); $definition->addCommand('mapi', 'Hello World'); $this->assertTrue($definition->hasCommand('mapi')); }