【发布时间】:2018-03-27 07:48:18
【问题描述】:
有没有办法在 Behat FeatureContext 中获取运行该方法的场景的标签?
my.feature
@SPRF1
Scenario: My scenario
Given something is done
FeatureContext
class FeatureContext implements \Behat\Behat\Context\Context
{
/**
* @Then something is done
*/
public function somethingIsDone()
{
$tags = $this->getScenarioTags(); // this doesn't exist
}
}
【问题讨论】: