public function AbstractProcessTest::testPTYCommand in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/process/Tests/AbstractProcessTest.php \Symfony\Component\Process\Tests\AbstractProcessTest::testPTYCommand()
File
- vendor/
symfony/ process/ Tests/ AbstractProcessTest.php, line 511
Class
- AbstractProcessTest
- @author Robert Schönthal <seroscho@googlemail.com>
Namespace
Symfony\Component\Process\TestsCode
public function testPTYCommand() {
if (!Process::isPtySupported()) {
$this
->markTestSkipped('PTY is not supported on this operating system.');
}
$process = $this
->getProcess('echo "foo"');
$process
->setPty(true);
$process
->run();
$this
->assertSame(Process::STATUS_TERMINATED, $process
->getStatus());
$this
->assertEquals("foo\r\n", $process
->getOutput());
}