You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 29, 2022. It is now read-only.
@@ -32,10 +42,13 @@ Let’s say a feature like this:
32
42
33
43
Scenario: Monkey gives a banana to another monkey
34
44
When bonobo takes a banana
35
-
And gives this banana to "gorilla"
45
+
And bonobo gives this banana to "gorilla"
36
46
37
47
```
38
48
49
+
See the “**this** banana”? What we want during the second step execution is a reference to the exact banana the bonobo initially took. This behat extension will help us to propagate the banana refence amongst steps.
50
+
51
+
39
52
### Provide state fragment
40
53
41
54
To share a piece of state with all other scenario’s steps, your contexts need to implement the `Gorghoa\ScenarioStateBehatExtension\Context\ScenarioStateAwareContext` interface.
@@ -101,6 +114,7 @@ The easiest way to consume state fragments provided to the scenario’s state, i
101
114
*/
102
115
public function giveBananaToGorilla($monkey, $scenarioBanana, Bonobo $scenarioBonobo)
103
116
{
117
+
// (note that PHPUnit is here only given as an example, feel free to use any asserter you want)
0 commit comments