class Illuminate / Process / FakeProcessDescription

FakeProcessDescription

Properties

public

$processId int|null

The process' ID.

Default: 1000
public

$output array

All of the process' output in the order it was described.

Default: []
public

$exitCode int

The process' exit code.

public

$runIterations int

The number of times the process should indicate that it is "running".

Methods

public

id ( int $processId ) : $this

Specify the process ID that should be assigned to the process.

Parameters

  • $processId int
public

output ( $output ) : $this

Describe a line of standard output.

Parameters

  • $output array|string
public

errorOutput ( $output ) : $this

Describe a line of error output.

Parameters

  • $output array|string
public

replaceOutput ( string $output ) : $this

Replace the entire output buffer with the given string.

Parameters

  • $output string
public

replaceErrorOutput ( string $output ) : $this

Replace the entire error output buffer with the given string.

Parameters

  • $output string
public

exitCode ( int $exitCode ) : $this

Specify the process exit code.

Parameters

  • $exitCode int
public

iterations ( int $iterations ) : $this

Specify how many times the "isRunning" method should return "true".

Parameters

  • $iterations int
public

runsFor ( int $iterations ) : $this

Specify how many times the "isRunning" method should return "true".

Parameters

  • $iterations int
public

toSymfonyProcess ( string $command ) : Symfony\...\Process

Turn the fake process description into an actual process.

Parameters

  • $command string
public

toProcessResult ( string $command ) : ProcessResult

Conver the process description into a process result.

Parameters

  • $command string
protected

resolveOutput ( ) : string

Resolve the standard output as a string.

protected

resolveErrorOutput ( ) : string

Resolve the error output as a string.