Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | public function testNumericArgs() |
||
10 | { |
||
11 | $args = [ |
||
12 | 'file.php', |
||
13 | '--some-opt', |
||
14 | 'file', |
||
15 | '-a', |
||
16 | 'file2', |
||
17 | ]; |
||
18 | |||
19 | $argParser = new ArgParser($args); |
||
20 | $this->assertSame("file", $argParser->getArg(1)); |
||
21 | $this->assertSame("file2", $argParser->getArg(2)); |
||
22 | $this->assertNull($argParser->getArg(3)); |
||
23 | } |
||
24 | |||
51 |