You are here

public function AbstractProcessTest::testProcessIsSignaledIfStopped 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::testProcessIsSignaledIfStopped()
3 calls to AbstractProcessTest::testProcessIsSignaledIfStopped()
SigchildDisabledProcessTest::testProcessIsSignaledIfStopped in vendor/symfony/process/Tests/SigchildDisabledProcessTest.php
@expectedException \Symfony\Component\Process\Exception\RuntimeException
SigchildEnabledProcessTest::testProcessIsSignaledIfStopped in vendor/symfony/process/Tests/SigchildEnabledProcessTest.php
@expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved.
SimpleProcessTest::testProcessIsSignaledIfStopped in vendor/symfony/process/Tests/SimpleProcessTest.php
3 methods override AbstractProcessTest::testProcessIsSignaledIfStopped()
SigchildDisabledProcessTest::testProcessIsSignaledIfStopped in vendor/symfony/process/Tests/SigchildDisabledProcessTest.php
@expectedException \Symfony\Component\Process\Exception\RuntimeException
SigchildEnabledProcessTest::testProcessIsSignaledIfStopped in vendor/symfony/process/Tests/SigchildEnabledProcessTest.php
@expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved.
SimpleProcessTest::testProcessIsSignaledIfStopped in vendor/symfony/process/Tests/SimpleProcessTest.php

File

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

Class

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

Namespace

Symfony\Component\Process\Tests

Code

public function testProcessIsSignaledIfStopped() {
  if ('\\' === DIRECTORY_SEPARATOR) {
    $this
      ->markTestSkipped('Windows does not support POSIX signals');
  }
  $process = $this
    ->getProcess(self::$phpBin . ' -r "sleep(4);"');
  $process
    ->start();
  $process
    ->stop();
  $this
    ->assertTrue($process
    ->hasBeenSignaled());
}