File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public function startProcess()
7676 $ this ->process ->start (
7777 $ ip ,
7878 $ port ,
79- realpath ($ this ->config ['bin_path ' ]),
79+ $ this -> getBinPath ($ this ->config ['bin_path ' ]),
8080 realpath ($ this ->config ['logs_path ' ]),
8181 $ this ->config ['debug ' ],
8282 $ this ->config ['expectations_path ' ] ? realpath ($ this ->config ['expectations_path ' ]) : null
@@ -103,4 +103,14 @@ private function initProcess($process)
103103 {
104104 $ this ->process = null === $ process ? new PhiremockProcess () : $ process ;
105105 }
106+
107+ private function getBinPath ($ path )
108+ {
109+ $ currentDirectory = getcwd ();
110+ chdir (Config::projectDir ());
111+ $ binPath = realpath ($ path );
112+ chdir ($ currentDirectory );
113+
114+ return $ binPath ;
115+ }
106116}
You can’t perform that action at this time.
0 commit comments