FakeProcessDescription
class FakeProcessDescription (View source)
Properties
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
$this
replaceErrorOutput(string $output)
Replace the entire error output buffer with the given string.
$this
iterations(int $iterations)
Specify how many times the "isRunning" method should return "true".
ProcessResult
toProcessResult(string $command)
Convert the process description into a process result.