10000 minor #18194 [travis] Run real php subprocesses on hhvm for Process c… · symfony/symfony@54f4f88 · GitHub
[go: up one dir, main page]

Skip to content

Commit 54f4f88

Browse files
committed
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
2 parents 4fece28 + c722e35 commit 54f4f88

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