public function testCanSetDefaultValueForArg() { $name = '<command>'; $desc = 'The <command> you need help with'; $obj = new DefinedArg($name, $desc); $obj->setDefaultValue('help'); // did it work? $this->assertEquals($name, $obj->name); $this->assertEquals($desc, $obj->desc); $this->assertEquals('help', $obj->defaultValue); }
public function setArgHasDefaultValueOf($value) { $this->requireValidArg(); $this->arg->setDefaultValue($value); return $this; }