/** * @see Behat\Behat\Context\ExtendedContextInterface::getMainContext() */ public function getMainContext() { if (null !== $this->parentContext) { return $this->parentContext->getMainContext(); } return $this; }