1 | <?php |
||
26 | class PhiremockProcess |
||
27 | { |
||
28 | /** |
||
29 | * Phiremock server log. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | const LOG_FILE_NAME = 'phiremock.log'; |
||
34 | |||
35 | /** |
||
36 | * @var \Symfony\Component\Process\Process |
||
37 | */ |
||
38 | private $process; |
||
39 | |||
40 | /** |
||
41 | * Starts Phiremock. |
||
42 | * |
||
43 | * @param string $ip |
||
44 | * @param int $port |
||
45 | * @param string $path |
||
46 | * @param string $logsPath |
||
47 | * @param bool $debug |
||
48 | * @param mixed $expectationsPath |
||
49 | */ |
||
50 | public function start($ip, $port, $path, $logsPath, $debug, $expectationsPath) |
||
63 | |||
64 | /** |
||
65 | * Stops the process. |
||
66 | */ |
||
67 | public function stop() |
||
74 | |||
75 | private function setUpProcessCompatibility() |
||
82 | |||
83 | /** |
||
84 | * @param string $ip |
||
85 | * @param int $port |
||
86 | * @param bool $debug |
||
87 | * @param string $expectationsPath |
||
88 | * @param string $phiremockPath |
||
89 | */ |
||
90 | private function initProcess($ip, $port, $debug, $expectationsPath, $phiremockPath) |
||
99 | |||
100 | /** |
||
101 | * @param string $ip |
||
102 | * @param int $port |
||
103 | * @param bool $debug |
||
104 | * @param string $expectationsPath |
||
105 | * @param string $phiremockPath |
||
106 | */ |
||
107 | private function logPhiremockCommand($ip, $port, $debug, $expectationsPath, $phiremockPath) |
||
116 | |||
117 | /** |
||
118 | * @return string |
||
119 | */ |
||
120 | private function getCommandPrefix() |
||
124 | |||
125 | /** |
||
126 | * @return bool |
||
127 | */ |
||
128 | private function isWindows() |
||
132 | } |
||
133 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.