File
- drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/AbstractProcessTest.php, line 315
Class
- AbstractProcessTest
- @author Robert Schönthal <seroscho@googlemail.com>
Namespace
Symfony\Component\Process\Tests
Code
public function testProcessIsSignaledIfStopped() {
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
$this
->markTestSkipped('Windows does not support POSIX signals');
}
$process = $this
->getProcess('php -r "while (true) {}"');
$process
->start();
$process
->stop();
$this
->assertTrue($process
->hasBeenSignaled());
}