\Symfony\Component\Process\TestsProcessTest

Summary

Methods
Properties
Constants
setUpBeforeClass()
testInvalidCwd()
testThatProcessDoesNotThrowWarningDuringRun()
testNegativeTimeoutFromConstructor()
testNegativeTimeoutFromSetter()
testFloatAndNullTimeout()
testStopWithTimeoutIsActuallyWorking()
testAllOutputIsActuallyReadOnTermination()
testCallbacksAreExecutedWithStart()
testProcessResponses()
testProcessPipes()
testSetStreamAsInput()
testLiveStreamAsInput()
testSetInputWhileRunningThrowsAnException()
testInvalidInput()
provideInvalidInputValues()
testValidInput()
provideInputValues()
chainedCommandsOutputProvider()
testChainedCommandsOutput()
testCallbackIsExecutedForOutput()
testCallbackIsExecutedForOutputWheneverOutputIsDisabled()
testGetErrorOutput()
testFlushErrorOutput()
testIncrementalOutput()
provideIncrementalOutput()
testGetOutput()
testFlushOutput()
testZeroAsOutput()
testExitCodeCommandFailed()
testTTYCommand()
testTTYCommandExitCode()
testTTYInWindowsEnvironment()
testExitCodeTextIsNullWhenExitCodeIsNull()
testPTYCommand()
testMustRun()
testSuccessfulMustRunHasCorrectExitCode()
testMustRunThrowsException()
testExitCodeText()
testStartIsNonBlocking()
testUpdateStatus()
testGetExitCodeIsNullOnStart()
testGetExitCodeIsNullOnWhenStartingAgain()
testGetExitCode()
testStatus()
testStop()
testIsSuccessful()
testIsSuccessfulOnlyAfterTerminated()
testIsNotSuccessful()
testProcessIsNotSignaled()
testProcessWithoutTermSignal()
testProcessIsSignaledIfStopped()
testProcessThrowsExceptionWhenExternallySignaled()
testRestart()
testRunProcessWithTimeout()
testIterateOverProcessWithTimeout()
testCheckTimeoutOnNonStartedProcess()
testCheckTimeoutOnTerminatedProcess()
testCheckTimeoutOnStartedProcess()
testIdleTimeout()
testIdleTimeoutNotExceededWhenOutputIsSent()
testStartAfterATimeout()
testGetPid()
testGetPidIsNullBeforeStart()
testGetPidIsNullAfterRun()
testSignal()
testExitCodeIsAvailableAfterSignal()
testSignalProcessNotRunning()
testMethodsThatNeedARunningProcess()
provideMethodsThatNeedARunningProcess()
testMethodsThatNeedATerminatedProcess()
provideMethodsThatNeedATerminatedProcess()
testWrongSignal()
testDisableOutputDisablesTheOutput()
testDisableOutputWhileRunningThrowsException()
testEnableOutputWhileRunningThrowsException()
testEnableOrDisableOutputAfterRunDoesNotThrowException()
testDisableOutputWhileIdleTimeoutIsSet()
testSetIdleTimeoutWhileOutputIsDisabled()
testSetNullIdleTimeoutWhileOutputIsDisabled()
testGetOutputWhileDisabled()
provideOutputFetchingMethods()
testStopTerminatesProcessCleanly()
testKillSignalTerminatesProcessCleanly()
testTermSignalTerminatesProcessCleanly()
responsesCodeProvider()
pipesCodeProvider()
testIncrementalOutputDoesNotRequireAnotherCall()
provideVariousIncrementals()
testIteratorInput()
testSimpleInputStream()
testInputStreamWithCallable()
testInputStreamWithGenerator()
testInputStreamOnEmpty()
testIteratorOutput()
testNonBlockingNorClearingIteratorOutput()
testChainedProcesses()
testSetBadEnv()
testEnvBackupDoesNotDeleteExistingVars()
testEnvIsInherited()
testGetCommandLine()
testEscapeArgument()
testRawCommandLine()
provideEscapeArgument()
testEnvArgument()
No public properties found
No constants found
tearDown()
No protected properties found
N/A
getProcess()
getProcessForCode()
$phpBin
$process
$sigchild
N/A

Properties

$phpBin

$phpBin : 

Type

$process

$process : 

Type

$sigchild

$sigchild : 

Type

Methods

setUpBeforeClass()

setUpBeforeClass() 

testInvalidCwd()

testInvalidCwd() 

testThatProcessDoesNotThrowWarningDuringRun()

testThatProcessDoesNotThrowWarningDuringRun() 

testNegativeTimeoutFromConstructor()

testNegativeTimeoutFromConstructor() 

testNegativeTimeoutFromSetter()

testNegativeTimeoutFromSetter() 

testFloatAndNullTimeout()

testFloatAndNullTimeout() 

testStopWithTimeoutIsActuallyWorking()

testStopWithTimeoutIsActuallyWorking() 

testAllOutputIsActuallyReadOnTermination()

testAllOutputIsActuallyReadOnTermination() 

testCallbacksAreExecutedWithStart()

testCallbacksAreExecutedWithStart() 

testProcessResponses()

testProcessResponses(  $expected,   $getter,   $code) 

tests results from sub processes.

Parameters

$expected
$getter
$code

testProcessPipes()

testProcessPipes(  $code,   $size) 

tests results from sub processes.

Parameters

$code
$size

testSetStreamAsInput()

testSetStreamAsInput(  $code,   $size) 

Parameters

$code
$size

testLiveStreamAsInput()

testLiveStreamAsInput() 

testSetInputWhileRunningThrowsAnException()

testSetInputWhileRunningThrowsAnException() 

testInvalidInput()

testInvalidInput(  $value) 

Parameters

$value

provideInvalidInputValues()

provideInvalidInputValues() 

testValidInput()

testValidInput(  $expected,   $value) 

Parameters

$expected
$value

provideInputValues()

provideInputValues() 

chainedCommandsOutputProvider()

chainedCommandsOutputProvider() 

testChainedCommandsOutput()

testChainedCommandsOutput(  $expected,   $operator,   $input) 

Parameters

$expected
$operator
$input

testCallbackIsExecutedForOutput()

testCallbackIsExecutedForOutput() 

testCallbackIsExecutedForOutputWheneverOutputIsDisabled()

testCallbackIsExecutedForOutputWheneverOutputIsDisabled() 

testGetErrorOutput()

testGetErrorOutput() 

testFlushErrorOutput()

testFlushErrorOutput() 

testIncrementalOutput()

testIncrementalOutput(  $getOutput,   $getIncrementalOutput,   $uri) 

Parameters

$getOutput
$getIncrementalOutput
$uri

provideIncrementalOutput()

provideIncrementalOutput() 

testGetOutput()

testGetOutput() 

testFlushOutput()

testFlushOutput() 

testZeroAsOutput()

testZeroAsOutput() 

testExitCodeCommandFailed()

testExitCodeCommandFailed() 

testTTYCommand()

testTTYCommand() 

testTTYCommandExitCode()

testTTYCommandExitCode() 

testTTYInWindowsEnvironment()

testTTYInWindowsEnvironment() 

testExitCodeTextIsNullWhenExitCodeIsNull()

testExitCodeTextIsNullWhenExitCodeIsNull() 

testPTYCommand()

testPTYCommand() 

testMustRun()

testMustRun() 

testSuccessfulMustRunHasCorrectExitCode()

testSuccessfulMustRunHasCorrectExitCode() 

testMustRunThrowsException()

testMustRunThrowsException() 

testExitCodeText()

testExitCodeText() 

testStartIsNonBlocking()

testStartIsNonBlocking() 

testUpdateStatus()

testUpdateStatus() 

testGetExitCodeIsNullOnStart()

testGetExitCodeIsNullOnStart() 

testGetExitCodeIsNullOnWhenStartingAgain()

testGetExitCodeIsNullOnWhenStartingAgain() 

testGetExitCode()

testGetExitCode() 

testStatus()

testStatus() 

testStop()

testStop() 

testIsSuccessful()

testIsSuccessful() 

testIsSuccessfulOnlyAfterTerminated()

testIsSuccessfulOnlyAfterTerminated() 

testIsNotSuccessful()

testIsNotSuccessful() 

testProcessIsNotSignaled()

testProcessIsNotSignaled() 

testProcessWithoutTermSignal()

testProcessWithoutTermSignal() 

testProcessIsSignaledIfStopped()

testProcessIsSignaledIfStopped() 

testProcessThrowsExceptionWhenExternallySignaled()

testProcessThrowsExceptionWhenExternallySignaled() 

testRestart()

testRestart() 

testRunProcessWithTimeout()

testRunProcessWithTimeout() 

testIterateOverProcessWithTimeout()

testIterateOverProcessWithTimeout() 

testCheckTimeoutOnNonStartedProcess()

testCheckTimeoutOnNonStartedProcess() 

testCheckTimeoutOnTerminatedProcess()

testCheckTimeoutOnTerminatedProcess() 

testCheckTimeoutOnStartedProcess()

testCheckTimeoutOnStartedProcess() 

testIdleTimeout()

testIdleTimeout() 

testIdleTimeoutNotExceededWhenOutputIsSent()

testIdleTimeoutNotExceededWhenOutputIsSent() 

testStartAfterATimeout()

testStartAfterATimeout() 

testGetPid()

testGetPid() 

testGetPidIsNullBeforeStart()

testGetPidIsNullBeforeStart() 

testGetPidIsNullAfterRun()

testGetPidIsNullAfterRun() 

testSignal()

testSignal() 

testExitCodeIsAvailableAfterSignal()

testExitCodeIsAvailableAfterSignal() 

testSignalProcessNotRunning()

testSignalProcessNotRunning() 

testMethodsThatNeedARunningProcess()

testMethodsThatNeedARunningProcess(  $method) 

Parameters

$method

provideMethodsThatNeedARunningProcess()

provideMethodsThatNeedARunningProcess() 

testMethodsThatNeedATerminatedProcess()

testMethodsThatNeedATerminatedProcess(  $method) 

Parameters

$method

provideMethodsThatNeedATerminatedProcess()

provideMethodsThatNeedATerminatedProcess() 

testWrongSignal()

testWrongSignal() 

testDisableOutputDisablesTheOutput()

testDisableOutputDisablesTheOutput() 

testDisableOutputWhileRunningThrowsException()

testDisableOutputWhileRunningThrowsException() 

testEnableOutputWhileRunningThrowsException()

testEnableOutputWhileRunningThrowsException() 

testEnableOrDisableOutputAfterRunDoesNotThrowException()

testEnableOrDisableOutputAfterRunDoesNotThrowException() 

testDisableOutputWhileIdleTimeoutIsSet()

testDisableOutputWhileIdleTimeoutIsSet() 

testSetIdleTimeoutWhileOutputIsDisabled()

testSetIdleTimeoutWhileOutputIsDisabled() 

testSetNullIdleTimeoutWhileOutputIsDisabled()

testSetNullIdleTimeoutWhileOutputIsDisabled() 

testGetOutputWhileDisabled()

testGetOutputWhileDisabled(  $fetchMethod) 

Parameters

$fetchMethod

provideOutputFetchingMethods()

provideOutputFetchingMethods() 

testStopTerminatesProcessCleanly()

testStopTerminatesProcessCleanly() 

testKillSignalTerminatesProcessCleanly()

testKillSignalTerminatesProcessCleanly() 

testTermSignalTerminatesProcessCleanly()

testTermSignalTerminatesProcessCleanly() 

responsesCodeProvider()

responsesCodeProvider() 

pipesCodeProvider()

pipesCodeProvider() 

testIncrementalOutputDoesNotRequireAnotherCall()

testIncrementalOutputDoesNotRequireAnotherCall(  $stream,   $method) 

Parameters

$stream
$method

provideVariousIncrementals()

provideVariousIncrementals() 

testIteratorInput()

testIteratorInput() 

testSimpleInputStream()

testSimpleInputStream() 

testInputStreamWithCallable()

testInputStreamWithCallable() 

testInputStreamWithGenerator()

testInputStreamWithGenerator() 

testInputStreamOnEmpty()

testInputStreamOnEmpty() 

testIteratorOutput()

testIteratorOutput() 

testNonBlockingNorClearingIteratorOutput()

testNonBlockingNorClearingIteratorOutput() 

testChainedProcesses()

testChainedProcesses() 

testSetBadEnv()

testSetBadEnv() 

testEnvBackupDoesNotDeleteExistingVars()

testEnvBackupDoesNotDeleteExistingVars() 

testEnvIsInherited()

testEnvIsInherited() 

testGetCommandLine()

testGetCommandLine() 

testEscapeArgument()

testEscapeArgument(  $arg) 

Parameters

$arg

testRawCommandLine()

testRawCommandLine() 

provideEscapeArgument()

provideEscapeArgument() 

testEnvArgument()

testEnvArgument() 

tearDown()

tearDown() 

getProcess()

getProcess(string  $commandline, string|null  $cwd = null, array|null  $env = null, string|null  $input = null, integer  $timeout = 60) : \Symfony\Component\Process\Process

Parameters

string $commandline
string|null $cwd
array|null $env
string|null $input
integer $timeout

Returns

\Symfony\Component\Process\Process

getProcessForCode()

getProcessForCode(  $code,   $cwd = null, array  $env = null,   $input = null,   $timeout = 60) : \Symfony\Component\Process\Process

Parameters

$code
$cwd
array $env
$input
$timeout

Returns

\Symfony\Component\Process\Process