| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function testExecute(): void |
||
| 24 | { |
||
| 25 | if (\defined('PHP_WINDOWS_VERSION_MAJOR')) { |
||
| 26 | $this->markTestSkipped('not tested on windows'); |
||
| 27 | } |
||
| 28 | |||
| 29 | $repo = new DummyRepo(); |
||
| 30 | $repo->setup(); |
||
| 31 | |||
| 32 | $cmd = new PostCommit(CH_PATH_FILES . '/config/empty.json', $repo->getPath()); |
||
| 33 | $output = new DummyOutput(); |
||
| 34 | $input = new ArrayInput([]); |
||
| 35 | |||
| 36 | $cmd->setIO(new NullIO()); |
||
| 37 | $cmd->run($input, $output); |
||
| 38 | |||
| 39 | $repo->cleanup(); |
||
| 40 | |||
| 41 | $this->assertTrue(true); |
||
| 42 | } |
||
| 44 |