Skip to content

Commit 0ad380c

Browse files
authored
Merge pull request #7 from FriendsOfBehat/regexp-tests
Add test for regexp notation
2 parents 444686c + 98e00a7 commit 0ad380c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

features/using_variadic_arguments_in_behat_steps_definitions.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ Feature: Using variadic arguments in Behat steps definitions
1212
{
1313
/**
1414
* @When I use a step with :two :arguments
15-
* @When I use another step :with :three :arguments
15+
* @When /^I use another step (\w+) (\w+) (\w+)$/
1616
*/
1717
public function iUseAStepWith(...$variadic)
1818
{
19-
echo sprintf('Number of passed arguments: %d', count($variadic));
19+
printf('Number of passed arguments: %d', count($variadic));
2020
}
2121
}
2222
"""
2323

24-
Scenario: Enabled variadic support
24+
Scenario: Enabled variadic support for steps with turnip notation
2525
Given a Behat configuration containing:
2626
"""
2727
default:
@@ -37,7 +37,7 @@ Feature: Using variadic arguments in Behat steps definitions
3737
When I run Behat
3838
Then it should pass with "Number of passed arguments: 2"
3939

40-
Scenario: Enabled variadic reduce code duplication
40+
Scenario: Enabled variadic support for steps with regexp notation
4141
Given a Behat configuration containing:
4242
"""
4343
default:

0 commit comments

Comments
 (0)