Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function testExecute(): void |
||
29 | { |
||
30 | $repo = new DummyRepo(); |
||
31 | $output = new NullOutput(); |
||
32 | $input = new ArrayInput( |
||
33 | [ |
||
34 | '--configuration' => CH_PATH_FILES . '/config/valid.json', |
||
35 | '--git-directory' => $repo->getGitDir(), |
||
36 | Hooks::ARG_MESSAGE_FILE => CH_PATH_FILES . '/git/message/valid.txt', |
||
37 | Hooks::ARG_MODE => 'message' |
||
38 | ] |
||
39 | ); |
||
40 | |||
41 | $cmd = new PrepareCommitMsg(new Resolver()); |
||
42 | $cmd->run($input, $output); |
||
43 | |||
44 | $this->assertTrue(true); |
||
45 | } |
||
47 |