public function testGetoptSetAliasesInvalid() { $opts = new Getopt('abp:', array('--apple')); $opts->setAliases(array('c' => 'cumquat')); $opts->setArguments(array('-c')); $this->setExpectedException('\Zend\Console\Exception\RuntimeException', 'not recognized'); $opts->parse(); }