/** * @param $subtestfolder - Folder in which the subtest is executed, containing feature-Files and bootstrap-Folder * @param $classNameContext - The Name for the Base-Context-Class to be set * @param \bdd_videoannotator\ - $adapter_instance - Instance which should be used in the subtest * bddadapters\ * BehatReportingAdapter */ public function __construct($subtestfolder, $classNameContext, \bdd_videoannotator\bddadapters\BehatReportingAdapter $adapter_instance) { $this->_subtestfolder = $subtestfolder; BehatReportingAdapterTestProxy::setUnderlyingInstance($adapter_instance); $this->_behatInstance = new BehatSubApplicationProxy($classNameContext); $this->_behatInstance->setAutoExit(false); }
public static function setUnderlyingInstance(BehatReportingAdapter $adapterInstance) { self::$_behatReportingAdapter = $adapterInstance; }