You are here

public function AbstractProcessTest::testStop in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/process/Tests/AbstractProcessTest.php \Symfony\Component\Process\Tests\AbstractProcessTest::testStop()

File

vendor/symfony/process/Tests/AbstractProcessTest.php, line 623

Class

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

Namespace

Symfony\Component\Process\Tests

Code

public function testStop() {
  $process = $this
    ->getProcess(self::$phpBin . ' -r "sleep(4);"');
  $process
    ->start();
  $this
    ->assertTrue($process
    ->isRunning());
  $process
    ->stop();
  $this
    ->assertFalse($process
    ->isRunning());
}