protected function PHPUnit_Util_PHP_Windows::process

@since Method available since Release 3.5.12

Parameters

resource $pipe:

Overrides PHPUnit_Util_PHP::process

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Util/PHP/Windows.php, line 68

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 files for process isolation.');
  }
  fwrite($pipe, "<?php require_once " . var_export($this->tempFile, TRUE) . "; ?>");
}