Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 2 | Features | 2 |
1 | <?php |
||
23 | protected function getServiceMock($configArgument = []) |
||
24 | { |
||
25 | $config = [ |
||
26 | 'KeyFile' => '/Users/Dummy/.ssh/id_rsa_foo', |
||
27 | 'Port' => 29418 |
||
28 | ]; |
||
29 | $config = array_merge($config, $configArgument); |
||
30 | |||
31 | $sshMock = $this->getMock('\Gerrie\Component\Connection\SSH', [], ['ssh', $config]); |
||
32 | |||
33 | $instance = new SSHDataService($sshMock, $config); |
||
34 | |||
35 | return $instance; |
||
36 | } |
||
37 | |||
46 | } |