getTests() public méthode

Gets a list of test names. Normally that will be all internal methods that start with the name "test". This method should be overridden if you want a different rule.
public getTests ( ) : array
Résultat array List of test names.
 /**
  * @param SimpleTestCase $testCase
  * @return integer
  * @since Method available since Release 2.11.1
  */
 public function countTestsInTestCase(SimpleTestCase $testCase)
 {
     $tests = $testCase->getTests();
     $testCount = 0;
     if ($this->config->testsOnlySpecified()) {
         if ($this->config->testsOnlySpecifiedMethods) {
             foreach ($tests as $method) {
                 if ($this->config->inMethodsToBeTested(get_class($testCase), $method)) {
                     ++$testCount;
                 }
             }
         } elseif ($this->config->testsOnlySpecifiedClasses) {
             if ($this->config->inClassesToBeTested(get_class($testCase))) {
                 $testCount = count($tests);
             }
         }
     } else {
         $testCount = count($tests);
     }
     return $testCount;
 }
 /**
  * @param SimpleTestCase $testCase
  * @return integer
  * @since Method available since Release 2.14.0
  */
 protected function getTestsInTestCase(SimpleTestCase $testCase)
 {
     return $testCase->getTests();
 }