Feature: Runner WP-CLI Scenario: Path argument should be slashed correctly When I try `wp no-such-command --path=/foo --debug` Then STDERR should contain: """ ABSPATH defined: /foo/ """ When I try `wp no-such-command --path=/foo/ --debug` Then STDERR should contain: """ ABSPATH defined: /foo/ """ When I try `wp no-such-command --path=/foo\\ --debug` Then STDERR should contain: """ ABSPATH defined: /foo/ """ Scenario: ABSPATH can be defined outside of WP-CLI Given an empty directory And a wp-cli.yml file: """ require: - abspath.php """ And a abspath.php file: """ ' when an invalid taxonomy command is run Given a WP install When I try `wp category list` Then STDERR should contain: """ Did you mean 'wp term '? """ And the return code should be 1 Scenario: Suggest 'wp post ' when an invalid post type command is run Given a WP install When I try `wp page create` Then STDERR should contain: """ Did you mean 'wp post --post_type=page '? """ And the return code should be 1