コード例 #1
0
 /**
  * Check if called method should be invoked (is in methods list) and then proceed with parents implementation
  * @param string test case
  * @param string method
  * @return boolean TRUE if method should be invoked
  */
 public function shouldInvoke($test_case, $method)
 {
     if (count($this->tests) > 0) {
         if (!array_key_exists($test_case, $this->tests)) {
             return false;
         }
         if (count($this->tests[$test_case]) > 0 && !in_array($method, $this->tests[$test_case])) {
             return false;
         }
     }
     return parent::shouldInvoke($test_case, $method);
 }