You are here

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

File

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

Class

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

Namespace

Symfony\Component\Process\Tests

Code

public function testGetPid() {
  $process = $this
    ->getProcess(self::$phpBin . ' -r "usleep(500000);"');
  $process
    ->start();
  $this
    ->assertGreaterThan(0, $process
    ->getPid());
  $process
    ->wait();
}