예제 #1
0
파일: GetoptTest.php 프로젝트: travisj/zf
 public function testGetoptDumpJson()
 {
     $opts = new Zend_Console_Getopt('abp:', array('-a', '-p', 'p_arg'));
     $this->assertEquals($opts->toJson(), '{"options":[{"option":{"flag":"a","parameter":true}},{"option":{"flag":"p","parameter":"p_arg"}}]}');
 }