File
- drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/AbstractProcessTest.php, line 363
Class
- AbstractProcessTest
- @author Robert Schönthal <seroscho@googlemail.com>
Namespace
Symfony\Component\Process\Tests
Code
public function testRestart() {
$process1 = $this
->getProcess('php -r "echo getmypid();"');
$process1
->run();
$process2 = $process1
->restart();
usleep(300000);
$this
->assertFalse($process1
->isRunning());
$this
->assertFalse($process2
->isRunning());
$this
->assertTrue(is_numeric($process1
->getOutput()));
$this
->assertTrue(is_numeric($process2
->getOutput()));
$this
->assertNotEquals($process1
->getOutput(), $process2
->getOutput());
}