Skip to content

Commit c3fcfd6

Browse files
author
Bulat Shakirzyanov
committed
print web server output on failure
1 parent 326f3dd commit c3fcfd6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

features/bootstrap/FeatureContext.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ public function iGoTo($path)
185185
}
186186

187187
if ($contents === false) {
188+
echo 'Web Server STDOUT: ' . $this->webServerProcess->getOutput() . "\n";
189+
echo 'Web Server STDERR: ' . $this->webServerProcess->getErrorOutput() . "\n";
190+
188191
throw new Exception(sprintf("Unable to fetch %s", $path));
189192
}
190193

@@ -280,8 +283,8 @@ private function execute(array $env = array())
280283

281284
private function startWebServer()
282285
{
283-
$this->webServerURL = 'http://127.0.0.1:4312';
284-
$command = sprintf('%s -S %s %s', $this->phpBin, 'localhost:4312', $this->phpBinOptions);
286+
$this->webServerURL = 'http://127.0.0.1:10000';
287+
$command = sprintf('%s -S %s %s', $this->phpBin, 'localhost:10000', $this->phpBinOptions);
285288
$this->webServerProcess = new Process($command, $this->workingDir);
286289
$this->webServerProcess->start();
287290
echo 'Web Server Started: ' . $this->webServerProcess->getPid() . "\n";

0 commit comments

Comments
 (0)