And STDERR should not be empty
Scenario: Help for incomplete commands
- Given a WP install
+ Given an empty directory
When I run `wp core`
Then STDOUT should contain:
"""
usage: wp core
"""
-
- # See https://github.com/wp-cli/wp-cli/issues/633
- When I run `wp plugin install`
- Then STDOUT should contain:
- """
- usage: wp plugin install
- """
}
function testPositional() {
- $r = SynopsisParser::parse( '<foo> [<bar>]' );
+ $r = SynopsisParser::parse( '<plugin|zip> [<bar>]' );
$this->assertCount( 2, $r );