Skip to content

Commit ecaf2e7

Browse files
Copilotswissspidy
andcommitted
Add test for $out and $evl variables
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 31bf815 commit ecaf2e7

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

features/shell.feature

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,23 @@ Feature: WordPress REPL
9595
"""
9696
=> string(16) "this should work"
9797
"""
98+
99+
Scenario: User can define variables named $out and $evl
100+
Given a WP install
101+
And a session file:
102+
"""
103+
$out = 'out should work';
104+
$evl = 'evl should work';
105+
$out;
106+
$evl;
107+
"""
108+
109+
When I run `wp shell --basic < session`
110+
Then STDOUT should contain:
111+
"""
112+
=> string(15) "out should work"
113+
"""
114+
And STDOUT should contain:
115+
"""
116+
=> string(15) "evl should work"
117+
"""

0 commit comments

Comments
 (0)