Console Actions

Centum\Codeception\Actions\ConsoleActions

createTerminal

createTerminal(
    list<string> $argv
): Centum\Interfaces\Console\TerminalInterface

grabStdoutContent

grabStdoutContent(): string

grabStderrContent

grabStderrContent(): string

grabConsoleApplication

Grab the Console Application from the Container.

grabConsoleApplication(): Centum\Interfaces\Console\ApplicationInterface

addCommand

Add a Command to the Console Application.

addCommand(
    class-string<Centum\Interfaces\Console\CommandInterface> $commandClass
): void

runCommand

runCommand(
    list<string> $argv
): int

addConsoleExceptionHandler

Add an Exception Handler to the Console Application.

addConsoleExceptionHandler(
    class-string<Centum\Interfaces\Console\ExceptionHandlerInterface> $exceptionHandlerClass
): void

grabExitCode

grabExitCode(): int

seeExitCodeIs

seeExitCodeIs(
    int $expectedCode
): void

seeExitCodeIsNot

seeExitCodeIsNot(
    int $expectedCode
): void

seeStdoutEquals

seeStdoutEquals(
    string $expected
): void

seeStdoutNotEquals

seeStdoutNotEquals(
    string $expected
): void

seeStdoutContains

seeStdoutContains(
    string $expected
): void

seeStdoutNotContains

seeStdoutNotContains(
    string $expected
): void

seeStderrEquals

seeStderrEquals(
    string $expected
): void

seeStderrNotEquals

seeStderrNotEquals(
    string $expected
): void

seeStderrContains

seeStderrContains(
    string $expected
): void

seeStderrNotContains

seeStderrNotContains(
    string $expected
): void

grabCommandMetadata

grabCommandMetadata(
    class-string<Centum\Interfaces\Console\CommandInterface> $commandClass
): Centum\Console\CommandMetadata

grabCommandName

grabCommandName(
    class-string<Centum\Interfaces\Console\CommandInterface> $commandClass
): string

grabCommandDescription

grabCommandDescription(
    class-string<Centum\Interfaces\Console\CommandInterface> $commandClass
): string

seeCommandNameIs

seeCommandNameIs(
    class-string<Centum\Interfaces\Console\CommandInterface> $commandClass,
    string $expectedName
): void

seeCommandDescriptionIs

seeCommandDescriptionIs(
    class-string<Centum\Interfaces\Console\CommandInterface> $commandClass,
    string $expectedName
): void