File
- drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/ProcessTest.php, line 131
Class
- ProcessTest
- @author Robert Schönthal <seroscho@googlemail.com>
Namespace
Symfony\Component\Process\Tests
Code
public function testStop() {
$process = new Process('php -r "while (true) {}"');
$process
->start();
$this
->assertTrue($process
->isRunning());
$process
->stop();
$this
->assertFalse($process
->isRunning());
if (!defined('PHP_WINDOWS_VERSION_MAJOR')) {
$this
->assertTrue($process
->hasBeenSignaled());
}
}