Skip to content

Commit

Permalink
fix: Tty not supported in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nmfzone committed Nov 18, 2019
1 parent 89970c2 commit 973da17
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Console/BehatCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ public function handle()
$this->startHttpServer(function () {
$behatProcess = (new Process(array_merge(
$this->binary(), $this->behatArguments($_SERVER['argv'])
)))->setTimeout(null)->setTty(true);
)))->setTimeout(null);

try {
$behatProcess->setTty(true);
} catch (RuntimeException $e) {
$this->output->writeln('Warning: '.$e->getMessage());
}

$behatProcess->start();
$behatProcess->wait();
Expand Down

0 comments on commit 973da17

Please sign in to comment.