public function AbstractProcessTest::testProcessWithTermSignal in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/process/Tests/AbstractProcessTest.php \Symfony\Component\Process\Tests\AbstractProcessTest::testProcessWithTermSignal()
 
3 calls to AbstractProcessTest::testProcessWithTermSignal()
- SigchildDisabledProcessTest::testProcessWithTermSignal in vendor/
symfony/ process/ Tests/ SigchildDisabledProcessTest.php  - @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved.
 - SigchildEnabledProcessTest::testProcessWithTermSignal 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::testProcessWithTermSignal in vendor/
symfony/ process/ Tests/ SimpleProcessTest.php  
3 methods override AbstractProcessTest::testProcessWithTermSignal()
- SigchildDisabledProcessTest::testProcessWithTermSignal in vendor/
symfony/ process/ Tests/ SigchildDisabledProcessTest.php  - @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved.
 - SigchildEnabledProcessTest::testProcessWithTermSignal 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::testProcessWithTermSignal in vendor/
symfony/ process/ Tests/ SimpleProcessTest.php  
File
- vendor/
symfony/ process/ Tests/ AbstractProcessTest.php, line 707  
Class
- AbstractProcessTest
 - @author Robert Schönthal <seroscho@googlemail.com>
 
Namespace
Symfony\Component\Process\TestsCode
public function testProcessWithTermSignal() {
  if ('\\' === DIRECTORY_SEPARATOR) {
    $this
      ->markTestSkipped('Windows does not support POSIX signals');
  }
  // SIGTERM is only defined if pcntl extension is present
  $termSignal = defined('SIGTERM') ? SIGTERM : 15;
  $process = $this
    ->getProcess(self::$phpBin . ' -r "sleep(4);"');
  $process
    ->start();
  $process
    ->stop();
  $this
    ->assertEquals($termSignal, $process
    ->getTermSignal());
}