runTest() public method

Runs the test method.
public runTest ( $method, array $args = NULL ) : void
$args array
return void
 /**
  * @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();
     }
 }
Esempio n. 2
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;
     }
 }