public function ProcessBuilderTest::testShouldNotThrowALogicExceptionIfNoArgument

File

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

Class

ProcessBuilderTest

Namespace

Symfony\Component\Process\Tests

Code

public function testShouldNotThrowALogicExceptionIfNoArgument() {
  $process = ProcessBuilder::create()
    ->setPrefix('/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());
  }
}