Conditions | 2 |
Paths | 2 |
Total Lines | 23 |
Code Lines | 12 |
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 PostMerge(CH_PATH_FILES . '/config/empty.json', $repo->getPath()); |
||
33 | $output = new DummyOutput(); |
||
34 | $input = new ArrayInput( |
||
35 | [ |
||
36 | 'squash' => 0 |
||
37 | ] |
||
38 | ); |
||
39 | |||
40 | $cmd->setIO(new NullIO()); |
||
41 | $cmd->run($input, $output); |
||
42 | |||
43 | $repo->cleanup(); |
||
44 | |||
45 | $this->assertTrue(true); |
||
46 | } |
||
48 |