public function AbstractProcessTest::testSignalWithWrongIntSignal

@expectedException Symfony\Component\Process\Exception\RuntimeException

1 call to AbstractProcessTest::testSignalWithWrongIntSignal()
SimpleProcessTest::testSignalWithWrongIntSignal in drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/SimpleProcessTest.php
@expectedException Symfony\Component\Process\Exception\RuntimeException
1 method overrides AbstractProcessTest::testSignalWithWrongIntSignal()
SimpleProcessTest::testSignalWithWrongIntSignal in drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/SimpleProcessTest.php
@expectedException Symfony\Component\Process\Exception\RuntimeException

File

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

Class

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

Namespace

Symfony\Component\Process\Tests

Code

public function testSignalWithWrongIntSignal() {
  if (defined('PHP_WINDOWS_VERSION_BUILD')) {
    $this
      ->markTestSkipped('POSIX signals do not work on windows');
  }
  $process = $this
    ->getProcess('php -r "sleep(3);"');
  $process
    ->start();
  $process
    ->signal(-4);
}