/** * @expectedException Exception */ public function testInvalidOption() { $options = new OptionCollection(); $options->addOption(new Option(0)); }