/** * @inheritdoc */ public function runTest($method, array $args = NULL) { try { $this->initializeModules($method); $this->lifeCycle->onInitialized(); parent::runTest($method, $args); $this->lifeCycle->onSuccess(); } catch (\Exception $e) { $this->lifeCycle->onException(); throw $e; } finally { $this->lifeCycle->onFinally(); } }
public function runTest($name, array $args = array()) { try { parent::runTest($name, $args); $this->seleniumContext->takeDown(); } catch (\Exception $e) { if (Debugger::$browser && ($tracy = Debugger::log($e))) { exec(Debugger::$browser . ' ' . escapeshellarg($tracy)); } $this->seleniumContext->takeDown(); throw $e; } }