You are here

public function AbstractProcessTest::testSignalWithWrongIntSignal in Zircon Profile 8

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

@expectedException \Symfony\Component\Process\Exception\RuntimeException

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

File

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

Class

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

Namespace

Symfony\Component\Process\Tests

Code

public function testSignalWithWrongIntSignal() {
  if ('\\' === DIRECTORY_SEPARATOR) {
    $this
      ->markTestSkipped('POSIX signals do not work on Windows');
  }
  $process = $this
    ->getProcess(self::$phpBin . ' -r "sleep(3);"');
  $process
    ->start();
  $process
    ->signal(-4);
}