trait Illuminate / Foundation / Testing / Concerns / InteractsWithConsole
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

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

$expectedOutputSubstrings array

All of the expected text to be present in the output.

Default: []
public

$unexpectedOutput array

All of the output lines that aren't expected to be displayed.

Default: []
public

$unexpectedOutputSubstrings array

All of the text that is not expected to be present in the output.

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.