Skip to content

How do you test a command? #14

@chippyash

Description

@chippyash

tl:dr; If I write a command, how do I test it

I've been using your Commando for a little while now. Very similar to PHP Symfony Console, which I have used since God was a small child. Now I need to unit test some production code that uses it. It's a bit opaque as to how you might do that. So just a little bit of documentation on how to set up a command so it can be tested in a unit test would be very gratefully appreciated.

Don't worry about virtual file systems - that's a subject for another repo (may come back here ;-) )

Regards
chippyash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions