gorghoa / ScenarioStateBehatExtension

Provide a way to share scenario state through steps
MIT License
33 stars 7 forks source link

Sharing state fragments between non-step function #23

Closed Gregcop1 closed 7 years ago

Gregcop1 commented 7 years ago

I need to share state fragments between two functions with annotation @BeforeScenario. I can provide datas to store in the first function, but injection of datas in the second function doesn't seem to work.

  ┌─ @BeforeScenario  # V2\UserContext::buildUsers()
  │
  ╳  Warning: Missing argument 2 for V2\UserContext::buildUsers() in features/bootstrap/V2/UserContext.php line 120
Gregcop1 commented 7 years ago

Thx guys