Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
17 | public function testGetParam(): void |
||
18 | { |
||
19 | // setup |
||
20 | $router = new Router(); |
||
21 | $requestParams = new ConsoleRequestParams($router); |
||
22 | global $argv; |
||
23 | $argv[0] = './vendor/phpunit/phpunit/phpunit'; |
||
24 | |||
25 | // test body |
||
26 | $result = $requestParams->getParam(0); |
||
27 | |||
28 | // assertions |
||
29 | $this->assertEquals('./vendor/phpunit/phpunit/phpunit', $result); |
||
30 | } |
||
32 |