We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6513d8f commit 5d5ca5bCopy full SHA for 5d5ca5b
README.md
@@ -21,3 +21,17 @@ Adds variadic arguments support to Behat steps definitions.
21
```
22
23
3. Boom! :boom: Your Behat contexts are able to use variadic arguments in steps definitions!
24
+
25
+ ```php
26
+ /**
27
+ * @Given the store has( also) :firstProductName and :secondProductName products
28
+ * @Given the store has( also) :firstProductName, :secondProductName and :thirdProductName products
29
+ * @Given the store has( also) :firstProductName, :secondProductName, :thirdProductName and :fourthProductName products
30
+ */
31
+ public function theStoreHasProducts(...$productsNames)
32
+ {
33
+ foreach ($productsNames as $productName) {
34
+ $this->saveProduct($this->createProduct($productName));
35
+ }
36
37
+ ```
0 commit comments