[travis] Run real php subprocesses on hhvm for Process component tests

This commit is contained in:
Nicolas Grekas 2016-03-16 14:40:51 +01:00
parent 4fece28773
commit c722e35fb3
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ addons:
env:
global:
- MIN_PHP=5.3.3
- SYMFONY_PROCESS_PHP_TEST_BINARY=~/.phpenv/versions/5.6/bin/php
matrix:
include:

View File

@ -30,7 +30,7 @@ class ProcessTest extends \PHPUnit_Framework_TestCase
public static function setUpBeforeClass()
{
$phpBin = new PhpExecutableFinder();
self::$phpBin = 'phpdbg' === PHP_SAPI ? 'php' : $phpBin->find();
self::$phpBin = getenv('SYMFONY_PROCESS_PHP_TEST_BINARY') ?: ('phpdbg' === PHP_SAPI ? 'php' : $phpBin->find());
if ('\\' !== DIRECTORY_SEPARATOR) {
// exec is mandatory to deal with sending a signal to the process
// see https://github.com/symfony/symfony/issues/5030 about prepending