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; } }
/** * Like in a test case, executed after each scenario * * @return void */ public function tearDown() { $this->seleniumContext->takeDown(); }