public function ProcessBuilderTest::testShouldNotThrowALogicExceptionIfNoPrefix

File

drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/ProcessBuilderTest.php, line 173

Class

ProcessBuilderTest

Namespace

Symfony\Component\Process\Tests

Code

public function testShouldNotThrowALogicExceptionIfNoPrefix() {
  $process = ProcessBuilder::create(array(
    '/usr/bin/php',
  ))
    ->getProcess();
  if (defined('PHP_WINDOWS_VERSION_BUILD')) {
    $this
      ->assertEquals('"/usr/bin/php"', $process
      ->getCommandLine());
  }
  else {
    $this
      ->assertEquals("'/usr/bin/php'", $process
      ->getCommandLine());
  }
}