| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function testParamsCorrectlySetted() : void |
||
| 21 | { |
||
| 22 | $params = [ |
||
| 23 | 'scriptname.php', |
||
| 24 | 'list', |
||
| 25 | '--help', |
||
| 26 | '--foo=bar', |
||
| 27 | ]; |
||
| 28 | |||
| 29 | $request = new Request($params); |
||
| 30 | |||
| 31 | $input = new RequestInput($request); |
||
| 32 | |||
| 33 | array_shift($params); |
||
| 34 | |||
| 35 | $this->assertTrue($input->hasParameterOption('list')); |
||
| 36 | $this->assertTrue($input->hasParameterOption('--help')); |
||
| 37 | $this->assertSame('bar', $input->getParameterOption('--foo')); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |