/**
  * @param PHPUnit_Framework_Test $test
  * @param array                  $groups
  */
 public function addTest(PHPUnit_Framework_Test $test, $groups = array())
 {
     if ($test instanceof PHPUnit_Framework_Warning && preg_match('/^No tests found in class/', $test->getMessage())) {
         return;
     }
     parent::addTest($test, $groups);
 }
 public function startTest(PHPUnit_Framework_Test $test)
 {
     if ($test instanceof PHPUnit_Framework_Warning) {
         $pieces = explode('"', $test->getMessage());
         if (count($pieces) == 3) {
             $testName = $pieces[1];
             $shownTestName = "Warning (" . $testName . ")";
             print traceCommand("testStarted", "name", $shownTestName, "locationHint", "php_qn://" . $this->myfilename . "::::" . $testName);
             print traceCommand("testIgnored", "name", $shownTestName, "message", $test->getMessage());
             print traceCommand("testFinished", "name", $shownTestName, "duration", 0);
             return;
         }
     }
     print traceCommand("testStarted", "name", $test->getName(), "locationHint", "php_qn://" . $this->myfilename . "::" . $test->toString());
     flush();
 }