示例#1
0
 /**
  * Execute the test along with any setup and tear down functions.
  *
  * @param  TestResult $result
  * @return void
  */
 public function run(TestResult $result)
 {
     $result->startTest($this);
     if ($this->getPending()) {
         $result->pendTest($this);
         return;
     }
     $this->executeTest($result);
     $result->endTest($this);
 }