public function AbstractProcessTest::testStop

File

drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/AbstractProcessTest.php, line 257

Class

AbstractProcessTest
@author Robert Schönthal <seroscho@googlemail.com>

Namespace

Symfony\Component\Process\Tests

Code

public function testStop() {
  $process = $this
    ->getProcess('php -r "while (true) {}"');
  $process
    ->start();
  $this
    ->assertTrue($process
    ->isRunning());
  $process
    ->stop();
  $this
    ->assertFalse($process
    ->isRunning());
}