public static function PHPUnit_Util_PHP::factory in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Util/PHP.php \PHPUnit_Util_PHP::factory()
@since Method available since Release 3.5.12
Return value
2 calls to PHPUnit_Util_PHP::factory()
- PHPUnit_Extensions_PhptTestCase::run in vendor/
phpunit/ phpunit/ src/ Extensions/ PhptTestCase.php - Runs a test and collects its result in a TestResult instance.
- PHPUnit_Framework_TestCase::run in vendor/
phpunit/ phpunit/ src/ 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
- vendor/
phpunit/ phpunit/ src/ Util/ PHP.php, line 22
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();
}