minor #18194 [travis] Run real php subprocesses on hhvm for Process component tests (nicolas-grekas)

This PR was merged into the 2.3 branch.

Discussion
----------

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

| Q             | A
| ------------- | ---
| Branch        | 2.3
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Let's see if this speeds up hhvm test matrix line.

Commits
-------

c722e35 [travis] Run real php subprocesses on hhvm for Process component tests
This commit is contained in:
Fabien Potencier 2016-03-16 16:03:55 +01:00
commit 54f4f88fa4
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