for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace RMiller\BehatSpec\Extension\PhpSpecExtension\Process\CommandRunner;
use RMiller\BehatSpec\Extension\PhpSpecExtension\Process\CommandRunner;
class PassthruCommandRunner implements CommandRunner
{
/**
* @var CliFunctionChecker
*/
private $functionChecker;
* @param CliFunctionChecker $functionChecker
public function __construct(CliFunctionChecker $functionChecker)
$this->functionChecker = $functionChecker;
}
* @param $path
* @param $args
public function runCommand($path, $args)
$command = escapeshellcmd($path) . ' ' . join(' ', array_map('escapeshellarg', $args));
passthru($command, $exitCode);
exit($exitCode);
public function isSupported()
return $this->functionChecker->functionCanBeUsed('passthru');