Пример #1
0
 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;
     }
 }
Пример #2
0
 /**
  * Like in a test case, executed after each scenario
  *
  * @return void
  */
 public function tearDown()
 {
     $this->seleniumContext->takeDown();
 }