You are here

public function AbstractProcessTest::testSetIdleTimeoutWhileOutputIsDisabled in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/process/Tests/AbstractProcessTest.php \Symfony\Component\Process\Tests\AbstractProcessTest::testSetIdleTimeoutWhileOutputIsDisabled()

File

vendor/symfony/process/Tests/AbstractProcessTest.php, line 1081

Class

AbstractProcessTest
@author Robert Schönthal <seroscho@googlemail.com>

Namespace

Symfony\Component\Process\Tests

Code

public function testSetIdleTimeoutWhileOutputIsDisabled() {
  $process = $this
    ->getProcess('sleep 3');
  $process
    ->disableOutput();
  $this
    ->setExpectedException('Symfony\\Component\\Process\\Exception\\LogicException', 'Idle timeout can not be set while the output is disabled.');
  $process
    ->setIdleTimeout(1);
}