Skip to content

Cannot write test for CLI::prompt(), CLI::input() #6076

Description

@kenjis

If we write test code for a command that uses CLI::prompt(), and run the test,
it waits for input for ever.

How can we write test?

public static function input(?string $prefix = null): string

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions