public function AbstractProcessTest::testTTYCommandExitCode in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/process/Tests/AbstractProcessTest.php \Symfony\Component\Process\Tests\AbstractProcessTest::testTTYCommandExitCode()
1 call to AbstractProcessTest::testTTYCommandExitCode()
- SigchildDisabledProcessTest::testTTYCommandExitCode in vendor/
symfony/ process/ Tests/ SigchildDisabledProcessTest.php - @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.
1 method overrides AbstractProcessTest::testTTYCommandExitCode()
- SigchildDisabledProcessTest::testTTYCommandExitCode in vendor/
symfony/ process/ Tests/ SigchildDisabledProcessTest.php - @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.
File
- vendor/
symfony/ process/ Tests/ AbstractProcessTest.php, line 480
Class
- AbstractProcessTest
- @author Robert Schönthal <seroscho@googlemail.com>
Namespace
Symfony\Component\Process\TestsCode
public function testTTYCommandExitCode() {
if ('\\' === DIRECTORY_SEPARATOR) {
$this
->markTestSkipped('Windows does have /dev/tty support');
}
$process = $this
->getProcess('echo "foo" >> /dev/null');
$process
->setTty(true);
$process
->run();
$this
->assertTrue($process
->isSuccessful());
}