public function AbstractProcessTest::testIsNotSuccessful

2 calls to AbstractProcessTest::testIsNotSuccessful()
SigchildDisabledProcessTest::testIsNotSuccessful in drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/SigchildDisabledProcessTest.php
@expectedException \Symfony\Component\Process\Exception\RuntimeException
SimpleProcessTest::testIsNotSuccessful in drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/SimpleProcessTest.php
2 methods override AbstractProcessTest::testIsNotSuccessful()
SigchildDisabledProcessTest::testIsNotSuccessful in drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/SigchildDisabledProcessTest.php
@expectedException \Symfony\Component\Process\Exception\RuntimeException
SimpleProcessTest::testIsNotSuccessful in drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/SimpleProcessTest.php

File

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

Class

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

Namespace

Symfony\Component\Process\Tests

Code

public function testIsNotSuccessful() {
  $process = $this
    ->getProcess('php -r "while (true) {}"');
  $process
    ->start();
  $this
    ->assertTrue($process
    ->isRunning());
  $process
    ->stop();
  $this
    ->assertFalse($process
    ->isSuccessful());
}