/**
  * @param SimpleTestCase $testCase
  * @return integer
  */
 protected function getTestsInTestCase(SimpleTestCase $testCase)
 {
     $tests = array();
     foreach (parent::getTestsInTestCase($testCase) as $test) {
         if (!$testCase instanceof CakeTestCase) {
             continue;
         }
         if (!in_array(strtolower($test), $testCase->methods)) {
             $tests[] = $test;
         }
     }
     return $tests;
 }
 /**
  * @param string $testName
  */
 public function paintCaseStart($testName)
 {
     parent::paintCaseStart($testName);
     $this->xmlWriter->startTestSuite($testName, $this->suite->countTestsInTestCase(SimpleTest::getContext()->getTest()));
 }