コード例 #1
0
ファイル: ParseOptTest.php プロジェクト: Jaymon/Montage
 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'));
 }