예제 #1
0
 /**
  * Invoke only test selected
  * @return Boolean
  */
 public function shouldInvoke($test_case_name, $method)
 {
     $this->test_case_name = $test_case_name;
     if (is_null(self::$runOnlyTests)) {
         return parent::shouldInvoke($test_case_name, $method);
     } else {
         return isset(self::$runOnlyTests[$test_case_name]) ? in_array($method, self::$runOnlyTests[$test_case_name]) : false;
     }
 }