You are here

public function AbstractProcessTest::testTTYInWindowsEnvironment 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::testTTYInWindowsEnvironment()

File

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

Class

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

Namespace

Symfony\Component\Process\Tests

Code

public function testTTYInWindowsEnvironment() {
  if ('\\' !== DIRECTORY_SEPARATOR) {
    $this
      ->markTestSkipped('This test is for Windows platform only');
  }
  $process = $this
    ->getProcess('echo "foo" >> /dev/null');
  $process
    ->setTty(false);
  $this
    ->setExpectedException('Symfony\\Component\\Process\\Exception\\RuntimeException', 'TTY mode is not supported on Windows platform.');
  $process
    ->setTty(true);
}