public function SimpleProcessTest::testStopTerminatesProcessCleanly in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/process/Tests/SimpleProcessTest.php \Symfony\Component\Process\Tests\SimpleProcessTest::testStopTerminatesProcessCleanly()
File
- vendor/
symfony/ process/ Tests/ SimpleProcessTest.php, line 150
Class
Namespace
Symfony\Component\Process\TestsCode
public function testStopTerminatesProcessCleanly() {
try {
$process = $this
->getProcess(self::$phpBin . ' -r "echo \'foo\'; sleep(1); echo \'bar\';"');
$process
->run(function () use ($process) {
$process
->stop();
});
} catch (\RuntimeException $e) {
$this
->fail('A call to stop() is not expected to cause wait() to throw a RuntimeException');
}
}