You are here

public function PhpExecutableFinderTest::testFindWithHHVM in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/process/Tests/PhpExecutableFinderTest.php \Symfony\Component\Process\Tests\PhpExecutableFinderTest::testFindWithHHVM()

tests find() with the env var PHP_PATH.

File

vendor/symfony/process/Tests/PhpExecutableFinderTest.php, line 48

Class

PhpExecutableFinderTest
@author Robert Schönthal <seroscho@googlemail.com>

Namespace

Symfony\Component\Process\Tests

Code

public function testFindWithHHVM() {
  if (!defined('HHVM_VERSION')) {
    $this
      ->markTestSkipped('Should be executed in HHVM context.');
  }
  $f = new PhpExecutableFinder();
  $current = getenv('PHP_BINARY') ?: PHP_BINARY;
  $this
    ->assertEquals($current . ' --php', $f
    ->find(), '::find() returns the executable PHP');
  $this
    ->assertEquals($current, $f
    ->find(false), '::find() returns the executable PHP');
}