You are here

class SigchildDisabledProcessTest in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/process/Tests/SigchildDisabledProcessTest.php \Symfony\Component\Process\Tests\SigchildDisabledProcessTest

Hierarchy

Expanded class hierarchy of SigchildDisabledProcessTest

File

vendor/symfony/process/Tests/SigchildDisabledProcessTest.php, line 14

Namespace

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

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.
   */
  public function testGetExitCode() {
    parent::testGetExitCode();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.
   */
  public function testGetExitCodeIsNullOnStart() {
    parent::testGetExitCodeIsNullOnStart();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.
   */
  public function testGetExitCodeIsNullOnWhenStartingAgain() {
    parent::testGetExitCodeIsNullOnWhenStartingAgain();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.
   */
  public function testExitCodeCommandFailed() {
    parent::testExitCodeCommandFailed();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.
   */
  public function testMustRun() {
    parent::testMustRun();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.
   */
  public function testSuccessfulMustRunHasCorrectExitCode() {
    parent::testSuccessfulMustRunHasCorrectExitCode();
  }

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

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

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved.
   */
  public function testProcessWithTermSignal() {
    parent::testProcessWithTermSignal();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved.
   */
  public function testProcessIsNotSignaled() {
    parent::testProcessIsNotSignaled();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved.
   */
  public function testProcessWithoutTermSignal() {
    parent::testProcessWithoutTermSignal();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.
   */
  public function testCheckTimeoutOnStartedProcess() {
    parent::testCheckTimeoutOnStartedProcess();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. The process identifier can not be retrieved.
   */
  public function testGetPid() {
    parent::testGetPid();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. The process identifier can not be retrieved.
   */
  public function testGetPidIsNullBeforeStart() {
    parent::testGetPidIsNullBeforeStart();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. The process identifier can not be retrieved.
   */
  public function testGetPidIsNullAfterRun() {
    parent::testGetPidIsNullAfterRun();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.
   */
  public function testExitCodeText() {
    $process = $this
      ->getProcess('qdfsmfkqsdfmqmsd');
    $process
      ->run();
    $process
      ->getExitCodeText();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.
   */
  public function testExitCodeTextIsNullWhenExitCodeIsNull() {
    parent::testExitCodeTextIsNullWhenExitCodeIsNull();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.
   */
  public function testIsSuccessful() {
    parent::testIsSuccessful();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.
   */
  public function testIsSuccessfulOnlyAfterTerminated() {
    parent::testIsSuccessfulOnlyAfterTerminated();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.
   */
  public function testIsNotSuccessful() {
    parent::testIsNotSuccessful();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.
   */
  public function testTTYCommandExitCode() {
    parent::testTTYCommandExitCode();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. The process can not be signaled.
   */
  public function testSignal() {
    parent::testSignal();
  }

  /**
   * @expectedException \Symfony\Component\Process\Exception\RuntimeException
   * @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved.
   */
  public function testProcessWithoutTermSignalIsNotSignaled() {
    parent::testProcessWithoutTermSignalIsNotSignaled();
  }
  public function testStopWithTimeoutIsActuallyWorking() {
    $this
      ->markTestSkipped('Stopping with signal is not supported in sigchild environment');
  }
  public function testProcessThrowsExceptionWhenExternallySignaled() {
    $this
      ->markTestSkipped('Retrieving Pid is not supported in sigchild environment');
  }
  public function testExitCodeIsAvailableAfterSignal() {
    $this
      ->markTestSkipped('Signal is not supported in sigchild environment');
  }
  public function testRunProcessWithTimeout() {
    $this
      ->markTestSkipped('Signal (required for timeout) is not supported in sigchild environment');
  }
  public function provideStartMethods() {
    return array(
      array(
        'start',
        'Symfony\\Component\\Process\\Exception\\LogicException',
        'Output has been disabled, enable it to allow the use of a callback.',
      ),
      array(
        'run',
        'Symfony\\Component\\Process\\Exception\\LogicException',
        'Output has been disabled, enable it to allow the use of a callback.',
      ),
      array(
        'mustRun',
        'Symfony\\Component\\Process\\Exception\\RuntimeException',
        'This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.',
      ),
    );
  }

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

}

Members

Namesort descending Modifiers Type Description Overrides
AbstractProcessTest::$phpBin protected static property
AbstractProcessTest::chainedCommandsOutputProvider public function
AbstractProcessTest::methodProvider public function provides default method names for simple getter/setter.
AbstractProcessTest::pipesCodeProvider public function
AbstractProcessTest::provideInputValues public function
AbstractProcessTest::provideInvalidInputValues public function
AbstractProcessTest::provideLegacyInputValues public function
AbstractProcessTest::provideMethodsThatNeedARunningProcess public function
AbstractProcessTest::provideMethodsThatNeedATerminatedProcess public function
AbstractProcessTest::provideOutputFetchingMethods public function
AbstractProcessTest::responsesCodeProvider public function
AbstractProcessTest::setUpBeforeClass public static function
AbstractProcessTest::testAllOutputIsActuallyReadOnTermination public function
AbstractProcessTest::testCallbackIsExecutedForOutput public function
AbstractProcessTest::testCallbacksAreExecutedWithStart public function
AbstractProcessTest::testChainedCommandsOutput public function @dataProvider chainedCommandsOutputProvider
AbstractProcessTest::testCheckTimeoutOnNonStartedProcess public function
AbstractProcessTest::testCheckTimeoutOnTerminatedProcess public function
AbstractProcessTest::testDisableOutputDisablesTheOutput public function
AbstractProcessTest::testDisableOutputWhileIdleTimeoutIsSet public function
AbstractProcessTest::testDisableOutputWhileRunningThrowsException public function
AbstractProcessTest::testEnableOrDisableOutputAfterRunDoesNotThrowException public function
AbstractProcessTest::testEnableOutputWhileRunningThrowsException public function
AbstractProcessTest::testFloatAndNullTimeout public function
AbstractProcessTest::testFlushErrorOutput public function
AbstractProcessTest::testFlushOutput public function
AbstractProcessTest::testGetEmptyIncrementalErrorOutput public function
AbstractProcessTest::testGetEmptyIncrementalOutput public function
AbstractProcessTest::testGetErrorOutput public function
AbstractProcessTest::testGetIncrementalErrorOutput public function
AbstractProcessTest::testGetIncrementalOutput public function
AbstractProcessTest::testGetOutput public function
AbstractProcessTest::testGetOutputWhileDisabled public function @dataProvider provideOutputFetchingMethods
AbstractProcessTest::testIdleTimeout public function
AbstractProcessTest::testIdleTimeoutNotExceededWhenOutputIsSent public function
AbstractProcessTest::testInvalidInput public function @dataProvider provideInvalidInputValues @expectedException \Symfony\Component\Process\Exception\InvalidArgumentException @expectedExceptionMessage Symfony\Component\Process\Process::setInput only accepts strings or stream resources.
AbstractProcessTest::testLegacyValidInput public function @dataProvider provideLegacyInputValues @group legacy
AbstractProcessTest::testMethodsThatNeedARunningProcess public function @dataProvider provideMethodsThatNeedARunningProcess
AbstractProcessTest::testMethodsThatNeedATerminatedProcess public function @dataProvider provideMethodsThatNeedATerminatedProcess
AbstractProcessTest::testNegativeTimeoutFromConstructor public function @expectedException \Symfony\Component\Process\Exception\InvalidArgumentException
AbstractProcessTest::testNegativeTimeoutFromSetter public function @expectedException \Symfony\Component\Process\Exception\InvalidArgumentException
AbstractProcessTest::testPhpDeadlock public function
AbstractProcessTest::testProcessPipes public function tests results from sub processes.
AbstractProcessTest::testProcessResponses public function tests results from sub processes.
AbstractProcessTest::testPTYCommand public function
AbstractProcessTest::testRestart public function
AbstractProcessTest::testSetIdleTimeoutWhileOutputIsDisabled public function
AbstractProcessTest::testSetInputWhileRunningThrowsAnException public function
AbstractProcessTest::testSetNullIdleTimeoutWhileOutputIsDisabled public function
AbstractProcessTest::testSetStreamAsInput public function @dataProvider pipesCodeProvider
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::testStartAfterATimeout public function 1
AbstractProcessTest::testStartIsNonBlocking public function
AbstractProcessTest::testStartWithACallbackAndDisabledOutput public function @dataProvider provideStartMethods
AbstractProcessTest::testStatus public function
AbstractProcessTest::testStop public function
AbstractProcessTest::testThatProcessDoesNotThrowWarningDuringRun public function
AbstractProcessTest::testTTYCommand public function
AbstractProcessTest::testTTYInWindowsEnvironment public function
AbstractProcessTest::testUpdateStatus public function
AbstractProcessTest::testValidInput public function @dataProvider provideInputValues
AbstractProcessTest::testZeroAsOutput public function
AbstractProcessTest::verifyPosixIsEnabled private function
SigchildDisabledProcessTest::getProcess protected function Overrides AbstractProcessTest::getProcess
SigchildDisabledProcessTest::provideStartMethods public function Overrides AbstractProcessTest::provideStartMethods
SigchildDisabledProcessTest::testCheckTimeoutOnStartedProcess public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method. Overrides AbstractProcessTest::testCheckTimeoutOnStartedProcess
SigchildDisabledProcessTest::testExitCodeCommandFailed public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method. Overrides AbstractProcessTest::testExitCodeCommandFailed
SigchildDisabledProcessTest::testExitCodeIsAvailableAfterSignal public function Overrides AbstractProcessTest::testExitCodeIsAvailableAfterSignal
SigchildDisabledProcessTest::testExitCodeText public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method. Overrides AbstractProcessTest::testExitCodeText
SigchildDisabledProcessTest::testExitCodeTextIsNullWhenExitCodeIsNull public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method. Overrides AbstractProcessTest::testExitCodeTextIsNullWhenExitCodeIsNull
SigchildDisabledProcessTest::testGetExitCode public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method. Overrides AbstractProcessTest::testGetExitCode
SigchildDisabledProcessTest::testGetExitCodeIsNullOnStart public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method. Overrides AbstractProcessTest::testGetExitCodeIsNullOnStart
SigchildDisabledProcessTest::testGetExitCodeIsNullOnWhenStartingAgain public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method. Overrides AbstractProcessTest::testGetExitCodeIsNullOnWhenStartingAgain
SigchildDisabledProcessTest::testGetPid public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. The process identifier can not be retrieved. Overrides AbstractProcessTest::testGetPid
SigchildDisabledProcessTest::testGetPidIsNullAfterRun public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. The process identifier can not be retrieved. Overrides AbstractProcessTest::testGetPidIsNullAfterRun
SigchildDisabledProcessTest::testGetPidIsNullBeforeStart public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. The process identifier can not be retrieved. Overrides AbstractProcessTest::testGetPidIsNullBeforeStart
SigchildDisabledProcessTest::testIsNotSuccessful public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method. Overrides AbstractProcessTest::testIsNotSuccessful
SigchildDisabledProcessTest::testIsSuccessful public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method. Overrides AbstractProcessTest::testIsSuccessful
SigchildDisabledProcessTest::testIsSuccessfulOnlyAfterTerminated public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method. Overrides AbstractProcessTest::testIsSuccessfulOnlyAfterTerminated
SigchildDisabledProcessTest::testMustRun public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method. Overrides AbstractProcessTest::testMustRun
SigchildDisabledProcessTest::testMustRunThrowsException public function @expectedException \Symfony\Component\Process\Exception\RuntimeException Overrides AbstractProcessTest::testMustRunThrowsException
SigchildDisabledProcessTest::testProcessIsNotSignaled public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved. Overrides AbstractProcessTest::testProcessIsNotSignaled
SigchildDisabledProcessTest::testProcessIsSignaledIfStopped public function @expectedException \Symfony\Component\Process\Exception\RuntimeException Overrides AbstractProcessTest::testProcessIsSignaledIfStopped
SigchildDisabledProcessTest::testProcessThrowsExceptionWhenExternallySignaled public function Overrides AbstractProcessTest::testProcessThrowsExceptionWhenExternallySignaled
SigchildDisabledProcessTest::testProcessWithoutTermSignal public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved. Overrides AbstractProcessTest::testProcessWithoutTermSignal
SigchildDisabledProcessTest::testProcessWithoutTermSignalIsNotSignaled public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved. Overrides AbstractProcessTest::testProcessWithoutTermSignalIsNotSignaled
SigchildDisabledProcessTest::testProcessWithTermSignal public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved. Overrides AbstractProcessTest::testProcessWithTermSignal
SigchildDisabledProcessTest::testRunProcessWithTimeout public function Overrides AbstractProcessTest::testRunProcessWithTimeout
SigchildDisabledProcessTest::testSignal public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. The process can not be signaled. Overrides AbstractProcessTest::testSignal
SigchildDisabledProcessTest::testStopWithTimeoutIsActuallyWorking public function Overrides AbstractProcessTest::testStopWithTimeoutIsActuallyWorking
SigchildDisabledProcessTest::testSuccessfulMustRunHasCorrectExitCode public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method. Overrides AbstractProcessTest::testSuccessfulMustRunHasCorrectExitCode
SigchildDisabledProcessTest::testTTYCommandExitCode public function @expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method. Overrides AbstractProcessTest::testTTYCommandExitCode