Skip to content

Commit 03a8c11

Browse files
committed
Add tests for built-in special variables
1 parent 07635dd commit 03a8c11

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

features/steps.feature

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,14 @@ Feature: Make sure "Given", "When", "Then" steps work as expected
5757

5858
When I run `echo {v}`
5959
Then STDOUT should match /^\{v}$/
60+
61+
Scenario: Special variables
62+
63+
When I run `echo {INVOKE_WP_CLI_WITH_PHP_ARGS-} cli info`
64+
Then STDOUT should match /php/
65+
And STDERR should be empty
66+
67+
68+
When I run `echo {WP_VERSION-latest}`
69+
Then STDOUT should match /\d\.\d/
70+
And STDERR should be empty

0 commit comments

Comments
 (0)