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 40
FakeProcessDescription
id(int $processId)
Specify the process ID that should be assigned to the process.
at line 52
FakeProcessDescription
output(array|string $output)
Describe a line of standard output.
at line 70
FakeProcessDescription
errorOutput(array|string $output)
Describe a line of error output.
at line 88
FakeProcessDescription
replaceOutput(string $output)
Replace the entire output buffer with the given string.
at line 110
FakeProcessDescription
replaceErrorOutput(string $output)
Replace the entire error output buffer with the given string.
at line 132
FakeProcessDescription
exitCode(int $exitCode)
Specify the process exit code.
at line 144
FakeProcessDescription
iterations(int $iterations)
Specify how many times the "isRunning" method should return "true".
at line 154
FakeProcessDescription
runsFor(int $iterations)
Specify how many times the "isRunning" method should return "true".
at line 164
Process
toSymfonyProcess(string $command)
Turn the fake process description into an actual process.
at line 172
ProcessResult
toProcessResult(string $command)
Convert the process description into a process result.
at line 185
protected string
resolveOutput()
Resolve the standard output as a string.
at line 198
protected string
resolveErrorOutput()
Resolve the error output as a string.