/** * Tests that {@link phpucConsoleInputDefinition::addArgument()} stores * a valid argument. * * @return void */ public function testAddArgument() { $definition = new phpucConsoleInputDefinition(); $definition->addCommand('manuel', 'Hello World.'); $this->assertFalse($definition->hasArgument('manuel', 'foo')); $definition->addArgument('manuel', 'foo', 'Hello World.'); $this->assertTrue($definition->hasArgument('manuel', 'foo')); }