public function AbstractProcessTest::testTTYCommand

File

drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/AbstractProcessTest.php, line 191

Class

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

Namespace

Symfony\Component\Process\Tests

Code

public function testTTYCommand() {
  if (defined('PHP_WINDOWS_VERSION_BUILD')) {
    $this
      ->markTestSkipped('Windows does have /dev/tty support');
  }
  $process = $this
    ->getProcess('echo "foo" >> /dev/null');
  $process
    ->setTTY(true);
  $process
    ->run();
  $this
    ->assertSame(Process::STATUS_TERMINATED, $process
    ->getStatus());
}