| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function test_list_modules(): void |
||
| 16 | { |
||
| 17 | Gacela::bootstrap(__DIR__); |
||
| 18 | |||
| 19 | $input = new StringInput('list:modules'); |
||
| 20 | $output = new BufferedOutput(); |
||
| 21 | |||
| 22 | $bootstrap = new ConsoleBootstrap(); |
||
| 23 | $bootstrap->setAutoExit(false); |
||
| 24 | $bootstrap->run($input, $output); |
||
| 25 | |||
| 26 | $out = $output->fetch(); |
||
| 27 | |||
| 28 | self::assertMatchesRegularExpression('#TestModule1.*ListModules\\\TestModule1#', $out); |
||
| 29 | self::assertMatchesRegularExpression('#TestModule2.*ListModules\\\TestModule2#', $out); |
||
| 30 | self::assertMatchesRegularExpression('#TestModule3.*ListModules\\\LevelUp\\\TestModule3#', $out); |
||
| 31 | self::assertStringNotContainsString('vendor', $out); |
||
| 32 | self::assertStringNotContainsString('ToBeIgnored', $out); |
||
| 33 | } |
||
| 35 |