You are here

public function ProcessBuilderTest::testShouldNotThrowALogicExceptionIfNoPrefix in Zircon Profile 8.0

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

File

vendor/symfony/process/Tests/ProcessBuilderTest.php, line 185

Class

ProcessBuilderTest

Namespace

Symfony\Component\Process\Tests

Code

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