| 1 | <?php |
||
| 14 | trait FeatureTrait |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The registered feature. |
||
| 19 | * |
||
| 20 | * @var \Behat\Gherkin\Node\FeatureNode |
||
| 21 | */ |
||
| 22 | protected $currentFeature; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Register the feature. |
||
| 26 | * |
||
| 27 | * This fires on a BeforeStep rather than a BeforeFeature since the latter |
||
| 28 | * can only be called statically. |
||
| 29 | * |
||
| 30 | * @param \Behat\Behat\Hook\Scope\BeforeStepScope $scope |
||
| 31 | * |
||
| 32 | * @BeforeStep |
||
| 33 | */ |
||
| 34 | public function registerFeature(BeforeStepScope $scope) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return \Behat\Gherkin\Node\FeatureNode |
||
| 41 | */ |
||
| 42 | protected function getFeature() |
||
| 46 | } |
||
| 47 |