1 | <?php |
||
27 | class Phiremock extends CodeceptionExtension |
||
28 | { |
||
29 | /** |
||
30 | * @var array |
||
31 | */ |
||
32 | public static $events = [ |
||
33 | 'suite.before' => 'startProcess', |
||
34 | 'suite.after' => 'stopProcess', |
||
35 | ]; |
||
36 | |||
37 | /** |
||
38 | * @var array |
||
39 | */ |
||
40 | protected $config = [ |
||
41 | 'listen' => '0.0.0.0:8086', |
||
42 | 'debug' => false, |
||
43 | 'startDelay' => 0, |
||
44 | ]; |
||
45 | |||
46 | /** |
||
47 | * @var PhiremockProcess |
||
48 | */ |
||
49 | private $process; |
||
50 | |||
51 | /** |
||
52 | * Class constructor. |
||
53 | * |
||
54 | * @param array $config |
||
55 | * @param array $options |
||
56 | * @param PhireMockProcess $process optional PhiremockProcess object |
||
57 | */ |
||
58 | public function __construct( |
||
71 | |||
72 | public function startProcess() |
||
86 | |||
87 | public function stopProcess() |
||
91 | |||
92 | private function executeDelay() |
||
98 | |||
99 | /** |
||
100 | * @param PhiremockProcess $process |
||
101 | */ |
||
102 | private function initProcess($process) |
||
106 | } |
||
107 |
It seems like you allow that null is being passed for a parameter, however the function which is called does not seem to accept null.
We recommend to add an additional type check (or disallow null for the parameter):