trait
Illuminate
/
Foundation
/
Testing
/
Concerns
/
InteractsWithConsole
You are viewing an older version of the documentation. For the latest, please visit master documentation.
InteractsWithConsole
Properties
public
$mockConsoleOutput bool
Indicates if the console output should be mocked.
Default: true
public
$expectedOutput array
All of the expected output lines.
Default: []
public
$unexpectedOutput array
All of the output lines that aren't expected to be displayed.
Default: []
public
$expectedTables array
All of the expected output tables.
Default: []
public
$expectedQuestions array
All of the expected questions.
Default: []
public
$expectedChoices array
All of the expected choice questions.
Default: []
Methods
public
artisan ( $command , $parameters ) : PendingCommand |int
Call artisan command and return code.
Parameters
- $command string
- $parameters array
protected
withoutMockingConsoleOutput ( ) : $this
Disable mocking the console output.