You are here

public function ProcessBuilderTest::testShouldNotThrowALogicExceptionIfNoArgument in Zircon Profile 8

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

File

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

Class

ProcessBuilderTest

Namespace

Symfony\Component\Process\Tests

Code

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