8000 [travis] Run real php subprocesses on hhvm for Process component tests · symfony/symfony@c722e35 · GitHub
[go: up one dir, main page]

Skip to content

Commit c722e35

Browse files
[travis] Run real php subprocesses on hhvm for Process component tests
1 parent 4fece28 commit c722e35

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ addons:
1313
env:
1414
global:
1515
- MIN_PHP=5.3.3
16+
- SYMFONY_PROCESS_PHP_TEST_BINARY=~/.phpenv/versions/5.6/bin/php
1617

1718
matrix:
1819
include:

src/Symfony/Component/Process/Tests/ProcessTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ProcessTest extends \PHPUnit_Framework_TestCase
3030
public static function setUpBeforeClass()
3131
{
3232
$phpBin = new PhpExecutableFinder();
33-
self::$phpBin = 'phpdbg' === PHP_SAPI ? 'php' : $phpBin->find();
33+
self::$phpBin = getenv('SYMFONY_PROCESS_PHP_TEST_BINARY') ?: ('phpdbg' === PHP_SAPI ? 'php' : $phpBin->find());
3434
if ('\\' !== DIRECTORY_SEPARATOR) {
3535
// exec is mandatory to deal with sending a signal to the process
3636
// see https://github.com/symfony/symfony/issues/5030 about prepending

0 commit comments

Comments
 (0)
0