public function testRequiredSucceed() { ///$this->setExpectedException('\InvalidArgumentException'); $argv = array(); $argv[] = 'one'; $argv[] = 'two'; $po = new ParseOpt($argv, array('blah' => 'foo')); $this->assertTrue($po->isField('blah', 'foo')); }