You are here

public function ProcessBuilderTest::testShouldSetArguments 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::testShouldSetArguments()

File

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

Class

ProcessBuilderTest

Namespace

Symfony\Component\Process\Tests

Code

public function testShouldSetArguments() {
  $pb = new ProcessBuilder(array(
    'initial',
  ));
  $pb
    ->setArguments(array(
    'second',
  ));
  $proc = $pb
    ->getProcess();
  $this
    ->assertContains('second', $proc
    ->getCommandLine());
}