File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,11 @@ class Phiremock extends CodeceptionExtension
3737
3838 /** @var array */
3939 protected $ config = [
40- 'listen ' => '0.0.0.0: ' . self ::DEFAULT_PORT ,
41- 'debug ' => false ,
42- 'start_delay ' => 0 ,
40+ 'listen ' => '0.0.0.0: ' . self ::DEFAULT_PORT ,
41+ 'debug ' => false ,
42+ 'start_delay ' => 0 ,
43+ 'bin_path ' => self ::DEFAULT_PATH ,
44+ 'expectations_path ' => null ,
4345 ];
4446
4547 /** @var PhiremockProcess */
@@ -57,7 +59,7 @@ public function __construct(
5759 array $ options ,
5860 PhiremockProcess $ process = null
5961 ) {
60- $ this ->setDefaults ();
62+ $ this ->setDefaultLogsPath ();
6163 parent ::__construct ($ config , $ options );
6264
6365 $ this ->initProcess ($ process );
@@ -102,11 +104,9 @@ private function initProcess(?PhiremockProcess $process): void
102104 $ this ->process = $ process ?? new PhiremockProcess ();
103105 }
104106
105- private function setDefaults (): void
107+ private function setDefaultLogsPath (): void
106108 {
107- $ this ->config ['bin_path ' ] = self ::DEFAULT_PATH ;
108109 $ this ->config ['logs_path ' ] = Config::logDir ();
109- $ this ->config ['expectations_path ' ] = null ;
110110 }
111111
112112 private function getPathFromCodeceptionDir ($ path ): string
You can’t perform that action at this time.
0 commit comments