You are here

public function AbstractProcessTest::testDisableOutputWhileIdleTimeoutIsSet in Zircon Profile 8

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

File

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

Class

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

Namespace

Symfony\Component\Process\Tests

Code

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