예제 #1
0
 public function test_get_arg_at_out_of_bound()
 {
     $arg_reader = new CLIArgumentsReader(array('1', '2', '3', '6', '12'));
     try {
         $arg_reader->get_arg_at(7);
         self::assertTrue(false);
     } catch (Exception $ex) {
         self::assertTrue($ex instanceof OutOfBoundsException);
     }
 }