FakeProcessDescription
class FakeProcessDescription
Properties
| int|null | $processId | The process' ID. |
|
| array<int, array<string, string>> | $output | All of the process' output in the order it was described. |
|
| int | $exitCode | The process' exit code. |
|
| int | $runIterations | The number of times the process should indicate that it is "running". |
Methods
Specify the process ID that should be assigned to the process.
Describe a line of standard output.
Describe a line of error output.
Replace the entire output buffer with the given string.
Replace the entire error output buffer with the given string.
Specify the process exit code.
Specify how many times the "isRunning" method should return "true".
Specify how many times the "isRunning" method should return "true".
Turn the fake process description into an actual process.
Convert the process description into a process result.
Resolve the standard output as a string.
Resolve the error output as a string.
Details
at line 38
FakeProcessDescription
id(int $processId)
Specify the process ID that should be assigned to the process.
at line 48
FakeProcessDescription
output(array|string $output)
Describe a line of standard output.
at line 64
FakeProcessDescription
errorOutput(array|string $output)
Describe a line of error output.
at line 80
FakeProcessDescription
replaceOutput(string $output)
Replace the entire output buffer with the given string.
at line 99
FakeProcessDescription
replaceErrorOutput(string $output)
Replace the entire error output buffer with the given string.
at line 118
FakeProcessDescription
exitCode(int $exitCode)
Specify the process exit code.
at line 128
FakeProcessDescription
iterations(int $iterations)
Specify how many times the "isRunning" method should return "true".
at line 136
FakeProcessDescription
runsFor(int $iterations)
Specify how many times the "isRunning" method should return "true".
at line 146
Process
toSymfonyProcess(string $command)
Turn the fake process description into an actual process.
at line 154
ProcessResult
toProcessResult(string $command)
Convert the process description into a process result.
at line 167
protected string
resolveOutput()
Resolve the standard output as a string.
at line 180
protected string
resolveErrorOutput()
Resolve the error output as a string.