/**
  * @return \Behat\Mink\Behat\Context\MinkContext
  */
 public function getMainContext()
 {
     return parent::getMainContext();
 }
Exemplo n.º 2
0
 /**
  * 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();
 }