public static function PHPUnit_Util_PHP::factory

@since Method available since Release 3.5.12

Return value

PHPUnit_Util_PHP

1 call to PHPUnit_Util_PHP::factory()
PHPUnit_Framework_TestCase::run in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php
Runs the test case and collects the results in a TestResult object. If no TestResult object is passed a new one will be created.

File

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

Class

PHPUnit_Util_PHP
Utility methods for PHP sub-processes.

Code

public static function factory() {
  if (DIRECTORY_SEPARATOR == '\\') {
    return new PHPUnit_Util_PHP_Windows();
  }
  return new PHPUnit_Util_PHP_Default();
}