/** * @param $name * @param $arguments * * @return AbstractGenerator */ public function __call($name, $arguments) { if (empty($arguments)) { $this->options->setBooleanOption($name); } else { $this->options->setOption($name, $arguments[0]); } return $this; }
public function testSetBooleanOption() { $this->object->setBooleanOption('testOpt'); $this->assertTrue($this->object->getOption('testOpt')); }