trait InteractsWithConsole (View source)

Properties

bool $mockConsoleOutput

Indicates if the console output should be mocked.

array $expectedOutput

All of the expected output lines.

array $unexpectedOutput

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

array $expectedTables

All of the expected output tables.

array $expectedQuestions

All of the expected questions.

array $expectedChoices

All of the expected choice questions.

Methods

artisan(string $command, array $parameters = [])

Call artisan command and return code.

$this
withoutMockingConsoleOutput()

Disable mocking the console output.

Details

PendingCommand|int artisan(string $command, array $parameters = [])

Call artisan command and return code.

Parameters

string $command
array $parameters

Return Value

PendingCommand|int

protected $this withoutMockingConsoleOutput()

Disable mocking the console output.

Return Value

$this