| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 18 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function testExecute() |
||
| 23 | { |
||
| 24 | $repo = new DummyRepo(); |
||
| 25 | $repo->setup(); |
||
| 26 | |||
| 27 | $cmd = new CommitMsg(HMU_PATH_FILES . '/config/valid.json', $repo->getPath()); |
||
| 28 | $output = new DummyOutput(); |
||
| 29 | $input = new ArrayInput( |
||
| 30 | [ |
||
| 31 | 'file' => HMU_PATH_FILES . '/git/message/valid.txt' |
||
| 32 | ] |
||
| 33 | ); |
||
| 34 | |||
| 35 | $cmd->setIO(new NullIO()); |
||
| 36 | $cmd->run($input, $output); |
||
| 37 | |||
| 38 | $repo->cleanup(); |
||
| 39 | } |
||
| 40 | } |
||
| 41 |