public static function PHPUnit_Framework_TestSuite::isPublicTestMethod

Parameters

ReflectionMethod $method:

Return value

boolean

1 call to PHPUnit_Framework_TestSuite::isPublicTestMethod()
PHPUnit_Framework_TestSuite::addTestMethod in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php, line 865

Class

PHPUnit_Framework_TestSuite
A TestSuite is a composite of Tests. It runs a collection of test cases.

Code

public static function isPublicTestMethod(ReflectionMethod $method) {
  return self::isTestMethod($method) && $method
    ->isPublic();
}