/** * @return \Behat\Mink\Behat\Context\MinkContext */ public function getMainContext() { return parent::getMainContext(); }
/** * Get main context or throw exception if not set * * @throws \RuntimeException * * @return BaseFeatureContext */ public function getMainContext() { if (parent::getMainContext() instanceof $this) { throw new \RuntimeException("Sub context has no parent"); } return parent::getMainContext(); }