Skip to content

info not able to be tested against as output via expectsOutput #184

@stevebauman

Description

@stevebauman

Laravel Prompts Version

0.3.4

Laravel Version

11.41.3

PHP Version

8.2.27

Operating System & Version

macOS 15.2

Terminal Application

Mocked

Description

When using the info helper, I'm unable to test the output using expectsOutput on the artisan PendingCommand instance.

Steps To Reproduce

Test:

$this->artisan(ChangeTwilioDataCommand::class)
    // ...
    ->expectsOutput('Okay, cancelled.');
// fails
info('Okay, cancelled.'); 

// passes
$this->info('Okay, cancelled.');

Demo:

Screen.Recording.2025-02-12.at.2.27.36.PM.mov

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions