public function ProcessBuilderTest::testNullTimeout

File

drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/ProcessBuilderTest.php, line 84

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));
}