Permalink
Browse files

Refactor.

  • Loading branch information...
1 parent 3d3f631 commit 61699ebc1379eb76028ca13c74b4354bca7a28bf @sebastianbergmann committed Feb 20, 2011
Showing with 7 additions and 12 deletions.
  1. +7 −12 PHPUnit/Util/PHP.php
View
@@ -65,17 +65,6 @@
protected static $phpBinary = NULL;
/**
- * Descriptor specification for proc_open().
- *
- * @var array
- */
- protected static $descriptorSpec = array(
- 0 => array('pipe', 'r'),
- 1 => array('pipe', 'w'),
- 2 => array('pipe', 'w')
- );
-
- /**
* Returns the path to a PHP interpreter.
*
* PHPUnit_Util_PHP::$phpBinary contains the path to the PHP
@@ -152,7 +141,13 @@ public static function factory()
public function runJob($job, PHPUnit_Framework_Test $test = NULL, PHPUnit_Framework_TestResult $result = NULL)
{
$process = proc_open(
- self::getPhpBinary(), self::$descriptorSpec, $pipes
+ self::getPhpBinary(),
+ array(
+ 0 => array('pipe', 'r'),
+ 1 => array('pipe', 'w'),
+ 2 => array('pipe', 'w')
+ ),
+ $pipes
);
if (!is_resource($process)) {

0 comments on commit 61699eb

Please sign in to comment.