PHP Class Symfony\Component\Process\Tests\ProcessTest

Author: Robert Schönthal ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: symfony/process

Public Methods

Method Description
chainedCommandsOutputProvider ( )
pipesCodeProvider ( )
provideIncrementalOutput ( )
provideInputValues ( )
provideInvalidInputValues ( )
provideMethodsThatNeedARunningProcess ( )
provideMethodsThatNeedATerminatedProcess ( )
provideOutputFetchingMethods ( )
provideVariousIncrementals ( )
provideWrongSignal ( )
responsesCodeProvider ( )
setUpBeforeClass ( )
testAllOutputIsActuallyReadOnTermination ( )
testCallbackIsExecutedForOutput ( )
testCallbackIsExecutedForOutputWheneverOutputIsDisabled ( )
testCallbacksAreExecutedWithStart ( )
testChainedCommandsOutput ( $expected, $operator, $input )
testChainedProcesses ( )
testCheckTimeoutOnNonStartedProcess ( )
testCheckTimeoutOnStartedProcess ( )
testCheckTimeoutOnTerminatedProcess ( )
testDisableOutputDisablesTheOutput ( )
testDisableOutputWhileIdleTimeoutIsSet ( )
testDisableOutputWhileRunningThrowsException ( )
testEnableOrDisableOutputAfterRunDoesNotThrowException ( )
testEnableOutputWhileRunningThrowsException ( )
testExitCodeCommandFailed ( )
testExitCodeIsAvailableAfterSignal ( )
testExitCodeText ( )
testExitCodeTextIsNullWhenExitCodeIsNull ( )
testFloatAndNullTimeout ( )
testFlushErrorOutput ( )
testFlushOutput ( )
testGetErrorOutput ( )
testGetExitCode ( )
testGetExitCodeIsNullOnStart ( )
testGetExitCodeIsNullOnWhenStartingAgain ( )
testGetOutput ( )
testGetOutputWhileDisabled ( $fetchMethod )
testGetPid ( )
testGetPidIsNullAfterRun ( )
testGetPidIsNullBeforeStart ( )
testIdleTimeout ( )
testIdleTimeoutNotExceededWhenOutputIsSent ( )
testIncrementalOutput ( $getOutput, $getIncrementalOutput, $uri )
testIncrementalOutputDoesNotRequireAnotherCall ( $stream, $method )
testInheritEnvDisabled ( )
testInheritEnvEnabled ( )
testInputStreamOnEmpty ( )
testInputStreamWithCallable ( )
testInputStreamWithGenerator ( )
testInvalidInput ( $value )
testIsNotSuccessful ( )
testIsSuccessful ( )
testIsSuccessfulOnlyAfterTerminated ( )
testIterateOverProcessWithTimeout ( )
testIteratorInput ( )
testIteratorOutput ( )
testKillSignalTerminatesProcessCleanly ( )
testLiveStreamAsInput ( )
testMethodsThatNeedARunningProcess ( $method )
testMethodsThatNeedATerminatedProcess ( $method )
testMustRun ( )
testMustRunThrowsException ( )
testNegativeTimeoutFromConstructor ( )
testNegativeTimeoutFromSetter ( )
testNonBlockingNorClearingIteratorOutput ( )
testPTYCommand ( )
testProcessIsNotSignaled ( )
testProcessIsSignaledIfStopped ( )
testProcessPipes ( $code, $size ) tests results from sub processes.
testProcessResponses ( $expected, $getter, $code ) tests results from sub processes.
testProcessThrowsExceptionWhenExternallySignaled ( )
testProcessWithoutTermSignal ( )
testRestart ( )
testRunProcessWithTimeout ( )
testSetIdleTimeoutWhileOutputIsDisabled ( )
testSetInputWhileRunningThrowsAnException ( )
testSetNullIdleTimeoutWhileOutputIsDisabled ( )
testSetStreamAsInput ( $code, $size )
testSignal ( )
testSignalProcessNotRunning ( )
testSimpleInputStream ( )
testStartAfterATimeout ( )
testStartIsNonBlocking ( )
testStatus ( )
testStop ( )
testStopTerminatesProcessCleanly ( )
testStopWithTimeoutIsActuallyWorking ( )
testSuccessfulMustRunHasCorrectExitCode ( )
testTTYCommand ( )
testTTYCommandExitCode ( )
testTTYInWindowsEnvironment ( )
testTermSignalTerminatesProcessCleanly ( )
testThatProcessDoesNotThrowWarningDuringRun ( )
testUpdateStatus ( )
testValidInput ( $expected, $value )
testWrongSignal ( $signal )
testZeroAsOutput ( )

Protected Methods

Method Description
tearDown ( )

Private Methods

Method Description
getProcess ( string $commandline, null | string $cwd = null, array $env = null, null | string $input = null, integer $timeout = 60, array $options = [] ) : Process
skipIfNotEnhancedSigchild ( $expectException = true )

Method Details

chainedCommandsOutputProvider() public method

pipesCodeProvider() public method

public pipesCodeProvider ( )

provideIncrementalOutput() public method

provideInputValues() public method

public provideInputValues ( )

provideInvalidInputValues() public method

provideMethodsThatNeedARunningProcess() public method

provideMethodsThatNeedATerminatedProcess() public method

provideOutputFetchingMethods() public method

provideVariousIncrementals() public method

provideWrongSignal() public method

public provideWrongSignal ( )

responsesCodeProvider() public method

setUpBeforeClass() public static method

public static setUpBeforeClass ( )

tearDown() protected method

protected tearDown ( )

testAllOutputIsActuallyReadOnTermination() public method

testCallbackIsExecutedForOutput() public method

testCallbackIsExecutedForOutputWheneverOutputIsDisabled() public method

testCallbacksAreExecutedWithStart() public method

testChainedCommandsOutput() public method

public testChainedCommandsOutput ( $expected, $operator, $input )

testChainedProcesses() public method

testCheckTimeoutOnNonStartedProcess() public method

testCheckTimeoutOnStartedProcess() public method

testCheckTimeoutOnTerminatedProcess() public method

testDisableOutputDisablesTheOutput() public method

testDisableOutputWhileIdleTimeoutIsSet() public method

testDisableOutputWhileRunningThrowsException() public method

testEnableOrDisableOutputAfterRunDoesNotThrowException() public method

testEnableOutputWhileRunningThrowsException() public method

testExitCodeCommandFailed() public method

testExitCodeIsAvailableAfterSignal() public method

testExitCodeText() public method

public testExitCodeText ( )

testExitCodeTextIsNullWhenExitCodeIsNull() public method

testFloatAndNullTimeout() public method

testFlushErrorOutput() public method

testFlushOutput() public method

public testFlushOutput ( )

testGetErrorOutput() public method

public testGetErrorOutput ( )

testGetExitCode() public method

public testGetExitCode ( )

testGetExitCodeIsNullOnStart() public method

testGetExitCodeIsNullOnWhenStartingAgain() public method

testGetOutput() public method

public testGetOutput ( )

testGetOutputWhileDisabled() public method

public testGetOutputWhileDisabled ( $fetchMethod )

testGetPid() public method

public testGetPid ( )

testGetPidIsNullAfterRun() public method

testGetPidIsNullBeforeStart() public method

testIdleTimeout() public method

public testIdleTimeout ( )

testIdleTimeoutNotExceededWhenOutputIsSent() public method

testIncrementalOutput() public method

public testIncrementalOutput ( $getOutput, $getIncrementalOutput, $uri )

testIncrementalOutputDoesNotRequireAnotherCall() public method

testInheritEnvDisabled() public method

testInheritEnvEnabled() public method

testInputStreamOnEmpty() public method

testInputStreamWithCallable() public method

testInputStreamWithGenerator() public method

testInvalidInput() public method

public testInvalidInput ( $value )

testIsNotSuccessful() public method

public testIsNotSuccessful ( )

testIsSuccessful() public method

public testIsSuccessful ( )

testIsSuccessfulOnlyAfterTerminated() public method

testIterateOverProcessWithTimeout() public method

testIteratorInput() public method

public testIteratorInput ( )

testIteratorOutput() public method

public testIteratorOutput ( )

testKillSignalTerminatesProcessCleanly() public method

testLiveStreamAsInput() public method

testMethodsThatNeedARunningProcess() public method

testMethodsThatNeedATerminatedProcess() public method

testMustRun() public method

public testMustRun ( )

testMustRunThrowsException() public method

testNegativeTimeoutFromConstructor() public method

testNegativeTimeoutFromSetter() public method

testNonBlockingNorClearingIteratorOutput() public method

testPTYCommand() public method

public testPTYCommand ( )

testProcessIsNotSignaled() public method

testProcessIsSignaledIfStopped() public method

testProcessPipes() public method

tests results from sub processes.
public testProcessPipes ( $code, $size )

testProcessResponses() public method

tests results from sub processes.
public testProcessResponses ( $expected, $getter, $code )

testProcessThrowsExceptionWhenExternallySignaled() public method

testProcessWithoutTermSignal() public method

testRestart() public method

public testRestart ( )

testRunProcessWithTimeout() public method

testSetIdleTimeoutWhileOutputIsDisabled() public method

testSetInputWhileRunningThrowsAnException() public method

testSetNullIdleTimeoutWhileOutputIsDisabled() public method

testSetStreamAsInput() public method

public testSetStreamAsInput ( $code, $size )

testSignal() public method

public testSignal ( )

testSignalProcessNotRunning() public method

testSimpleInputStream() public method

testStartAfterATimeout() public method

testStartIsNonBlocking() public method

testStatus() public method

public testStatus ( )

testStop() public method

public testStop ( )

testStopTerminatesProcessCleanly() public method

testStopWithTimeoutIsActuallyWorking() public method

testSuccessfulMustRunHasCorrectExitCode() public method

testTTYCommand() public method

public testTTYCommand ( )

testTTYCommandExitCode() public method

testTTYInWindowsEnvironment() public method

testTermSignalTerminatesProcessCleanly() public method

testThatProcessDoesNotThrowWarningDuringRun() public method

testUpdateStatus() public method

public testUpdateStatus ( )

testValidInput() public method

public testValidInput ( $expected, $value )

testWrongSignal() public method

public testWrongSignal ( $signal )

testZeroAsOutput() public method

public testZeroAsOutput ( )