/** * Set a single option for this command. * * @param string $name Name of the option to set. * @param mixed $value Value for that option. * * @return \Clinner\Command\Command This instance, for a fluent API. */ public function setOption($name, $value) { $this->_options->set($name, $value); return $this; }
public function testSet() { $valueHolder = new ValueHolder(); $valueHolder->set('key', 'value'); $this->assertEquals('value', $valueHolder->key); }