protected function PHPUnit_Util_PHP_Windows::process in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit/src/Util/PHP/Windows.php \PHPUnit_Util_PHP_Windows::process()
@since Method available since Release 3.5.12
Parameters
resource $pipe:
string $job:
Throws
Overrides PHPUnit_Util_PHP_Default::process
1 call to PHPUnit_Util_PHP_Windows::process()
- PHPUnit_Util_PHP_Windows::runJob in vendor/
phpunit/ phpunit/ src/ Util/ PHP/ Windows.php - Reading from STDOUT or STDERR hangs forever on Windows if the output is too large.
File
- vendor/
phpunit/ phpunit/ src/ Util/ PHP/ Windows.php, line 82
Class
- PHPUnit_Util_PHP_Windows
- Windows utility for PHP sub-processes.
Code
protected function process($pipe, $job) {
if (!($this->tempFile = tempnam(sys_get_temp_dir(), 'PHPUnit')) || file_put_contents($this->tempFile, $job) === false) {
throw new PHPUnit_Framework_Exception('Unable to write temporary file');
}
fwrite($pipe, '<?php require_once ' . var_export($this->tempFile, true) . '; ?>');
}