Skip to content

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

Closed
@kenjis

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions