You are here

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