class SigchildEnabledProcessTest

Hierarchy

Expanded class hierarchy of SigchildEnabledProcessTest

File

drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/SigchildEnabledProcessTest.php, line 14

Namespace

Symfony\Component\Process\Tests
View source
class SigchildEnabledProcessTest extends AbstractProcessTest {

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   */
  public function testProcessIsSignaledIfStopped() {
    parent::testProcessIsSignaledIfStopped();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   */
  public function testProcessWithTermSignal() {
    parent::testProcessWithTermSignal();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   */
  public function testProcessIsNotSignaled() {
    parent::testProcessIsNotSignaled();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   */
  public function testProcessWithoutTermSignal() {
    parent::testProcessWithoutTermSignal();
  }

  /**
   * @expectedException Symfony\Component\Process\Exception\RuntimeException
   */
  public function testGetPid() {
    parent::testGetPid();
  }

  /**
   * @expectedException Symfony\Component\Process\Exception\RuntimeException
   */
  public function testGetPidIsNullBeforeStart() {
    parent::testGetPidIsNullBeforeStart();
  }

  /**
   * @expectedException Symfony\Component\Process\Exception\RuntimeException
   */
  public function testGetPidIsNullAfterRun() {
    parent::testGetPidIsNullAfterRun();
  }
  public function testExitCodeText() {
    $process = $this
      ->getProcess('qdfsmfkqsdfmqmsd');
    $process
      ->run();
    $this
      ->assertInternalType('string', $process
      ->getExitCodeText());
  }

  /**
   * @expectedException Symfony\Component\Process\Exception\RuntimeException
   */
  public function testSignal() {
    parent::testSignal();
  }

  /**
   * @expectedException Symfony\Component\Process\Exception\RuntimeException
   */
  public function testProcessWithoutTermSignalIsNotSignaled() {
    parent::testProcessWithoutTermSignalIsNotSignaled();
  }
  public function testProcessThrowsExceptionWhenExternallySignaled() {
    $this
      ->markTestSkipped('Retrieving Pid is not supported in sigchild environment');
  }

  /**
   * {@inheritdoc}
   */
  protected function getProcess($commandline, $cwd = null, array $env = null, $stdin = null, $timeout = 60, array $options = array()) {
    $process = new ProcessInSigchildEnvironment($commandline, $cwd, $env, $stdin, $timeout, $options);
    $process
      ->setEnhanceSigchildCompatibility(true);
    return $process;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AbstractProcessTest::chainedCommandsOutputProvider public function
AbstractProcessTest::methodProvider public function provides default method names for simple getter/setter
AbstractProcessTest::pipesCodeProvider public function
AbstractProcessTest::responsesCodeProvider public function
AbstractProcessTest::testCallbackIsExecutedForOutput public function
AbstractProcessTest::testChainedCommandsOutput public function @dataProvider chainedCommandsOutputProvider
AbstractProcessTest::testCheckTimeoutOnStartedProcess public function
AbstractProcessTest::testExitCodeCommandFailed public function 2
AbstractProcessTest::testGetErrorOutput public function
AbstractProcessTest::testGetExitCode public function 2
AbstractProcessTest::testGetIncrementalErrorOutput public function
AbstractProcessTest::testGetIncrementalOutput public function
AbstractProcessTest::testGetOutput public function
AbstractProcessTest::testIsNotSuccessful public function 2
AbstractProcessTest::testIsSuccessful public function 2
AbstractProcessTest::testNegativeTimeoutFromConstructor public function @expectedException \Symfony\Component\Process\Exception\InvalidArgumentException
AbstractProcessTest::testNegativeTimeoutFromSetter public function @expectedException \Symfony\Component\Process\Exception\InvalidArgumentException
AbstractProcessTest::testNullTimeout public function
AbstractProcessTest::testPhpDeadlock public function
AbstractProcessTest::testProcessPipes public function tests results from sub processes
AbstractProcessTest::testProcessResponses public function tests results from sub processes
AbstractProcessTest::testRestart public function
AbstractProcessTest::testRunProcessWithTimeout public function
AbstractProcessTest::testSignalProcessNotRunning public function @expectedException Symfony\Component\Process\Exception\LogicException 1
AbstractProcessTest::testSignalWithWrongIntSignal public function @expectedException Symfony\Component\Process\Exception\RuntimeException 1
AbstractProcessTest::testSignalWithWrongNonIntSignal public function @expectedException Symfony\Component\Process\Exception\RuntimeException 1
AbstractProcessTest::testStartIsNonBlocking public function
AbstractProcessTest::testStatus public function
AbstractProcessTest::testStop public function
AbstractProcessTest::testStopWithTimeoutIsActuallyWorking public function 1
AbstractProcessTest::testTTYCommand public function
AbstractProcessTest::testUpdateStatus public function
SigchildEnabledProcessTest::getProcess protected function Overrides AbstractProcessTest::getProcess
SigchildEnabledProcessTest::testExitCodeText public function Overrides AbstractProcessTest::testExitCodeText
SigchildEnabledProcessTest::testGetPid public function @expectedException Symfony\Component\Process\Exception\RuntimeException Overrides AbstractProcessTest::testGetPid
SigchildEnabledProcessTest::testGetPidIsNullAfterRun public function @expectedException Symfony\Component\Process\Exception\RuntimeException Overrides AbstractProcessTest::testGetPidIsNullAfterRun
SigchildEnabledProcessTest::testGetPidIsNullBeforeStart public function @expectedException Symfony\Component\Process\Exception\RuntimeException Overrides AbstractProcessTest::testGetPidIsNullBeforeStart
SigchildEnabledProcessTest::testProcessIsNotSignaled public function @expectedException \Symfony\Component\Process\Exception\RuntimeException Overrides AbstractProcessTest::testProcessIsNotSignaled
SigchildEnabledProcessTest::testProcessIsSignaledIfStopped public function @expectedException \Symfony\Component\Process\Exception\RuntimeException Overrides AbstractProcessTest::testProcessIsSignaledIfStopped
SigchildEnabledProcessTest::testProcessThrowsExceptionWhenExternallySignaled public function Overrides AbstractProcessTest::testProcessThrowsExceptionWhenExternallySignaled
SigchildEnabledProcessTest::testProcessWithoutTermSignal public function @expectedException \Symfony\Component\Process\Exception\RuntimeException Overrides AbstractProcessTest::testProcessWithoutTermSignal
SigchildEnabledProcessTest::testProcessWithoutTermSignalIsNotSignaled public function @expectedException Symfony\Component\Process\Exception\RuntimeException Overrides AbstractProcessTest::testProcessWithoutTermSignalIsNotSignaled
SigchildEnabledProcessTest::testProcessWithTermSignal public function @expectedException \Symfony\Component\Process\Exception\RuntimeException Overrides AbstractProcessTest::testProcessWithTermSignal
SigchildEnabledProcessTest::testSignal public function @expectedException Symfony\Component\Process\Exception\RuntimeException Overrides AbstractProcessTest::testSignal