| Conditions | 3 |
| Paths | 6 |
| Total Lines | 24 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function start() |
||
| 29 | { |
||
| 30 | try { |
||
| 31 | $process = $this->runCommand([ |
||
| 32 | $this->getBinary(), |
||
| 33 | 'status', |
||
| 34 | ], true); |
||
| 35 | |||
| 36 | var_dump('Output:' . $process->getOutput()); |
||
|
|
|||
| 37 | } catch (ProcessFailedException $e) { |
||
| 38 | var_dump('Exception: ' . $e->getMessage()); |
||
| 39 | } |
||
| 40 | |||
| 41 | try { |
||
| 42 | $this->runCommand([ |
||
| 43 | $this->getBinary(), |
||
| 44 | 'start', |
||
| 45 | ], true); |
||
| 46 | } catch (ProcessFailedException $e) { |
||
| 47 | var_dump($e->getMessage()); |
||
| 48 | } |
||
| 49 | |||
| 50 | $this->waitFor($this->getIp(), $this->getPort(), 2000); |
||
| 51 | } |
||
| 52 | |||
| 99 |