FakeProcessDescription
Properties
$processId int|null
The process' ID.
$output array
All of the process' output in the order it was described.
$exitCode int
The process' exit code.
$runIterations int
The number of times the process should indicate that it is "running".
Methods
id ( int $processId ) : $this
Specify the process ID that should be assigned to the process.
Parameters
- $processId int
output ( $output ) : $this
Describe a line of standard output.
Parameters
- $output array|string
errorOutput ( $output ) : $this
Describe a line of error output.
Parameters
- $output array|string
replaceOutput ( string $output ) : $this
Replace the entire output buffer with the given string.
Parameters
- $output string
replaceErrorOutput ( string $output ) : $this
Replace the entire error output buffer with the given string.
Parameters
- $output string
exitCode ( int $exitCode ) : $this
Specify the process exit code.
Parameters
- $exitCode int
iterations ( int $iterations ) : $this
Specify how many times the "isRunning" method should return "true".
Parameters
- $iterations int
runsFor ( int $iterations ) : $this
Specify how many times the "isRunning" method should return "true".
Parameters
- $iterations int
toSymfonyProcess ( string $command ) : Symfony\...\Process
Turn the fake process description into an actual process.
Parameters
- $command string
toProcessResult ( string $command ) : ProcessResult
Conver the process description into a process result.
Parameters
- $command string
resolveOutput ( ) : string
Resolve the standard output as a string.
resolveErrorOutput ( ) : string
Resolve the error output as a string.