| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function test_custom_service(): void |
||
| 24 | { |
||
| 25 | $output = new BufferedOutput(); |
||
| 26 | |||
| 27 | (new HelloCommand())->run( |
||
| 28 | $this->createStub(InputInterface::class), |
||
| 29 | $output, |
||
| 30 | ); |
||
| 31 | |||
| 32 | $expected = <<<TXT |
||
| 33 | fake-admin(id:1) |
||
| 34 | fake-admin(id:2) |
||
| 35 | TXT; |
||
| 36 | |||
| 37 | if (strcasecmp(substr(PHP_OS, 0, 3), 'WIN') == 0) { |
||
| 38 | $expected = str_replace("\n", PHP_EOL, $expected); |
||
| 39 | } |
||
| 40 | |||
| 41 | self::assertSame($expected, $output->fetch()); |
||
| 42 | } |
||
| 44 |