You are here

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

File

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

Class

ProcessBuilderTest

Namespace

Symfony\Component\Process\Tests

Code

public function testNullTimeout() {
  $pb = new ProcessBuilder();
  $pb
    ->setTimeout(10);
  $pb
    ->setTimeout(null);
  $r = new \ReflectionObject($pb);
  $p = $r
    ->getProperty('timeout');
  $p
    ->setAccessible(true);
  $this
    ->assertNull($p
    ->getValue($pb));
}