Returns the size of the test.
@since Method available since Release 3.6.0
string $className:
string $methodName:
integer
public static function getSize($className, $methodName) {
$groups = array_flip(self::getGroups($className, $methodName));
$size = self::SMALL;
$class = new ReflectionClass($className);
if (class_exists('PHPUnit_Extensions_Database_TestCase', FALSE) && $class
->isSubclassOf('PHPUnit_Extensions_Database_TestCase') || class_exists('PHPUnit_Extensions_SeleniumTestCase', FALSE) && $class
->isSubclassOf('PHPUnit_Extensions_SeleniumTestCase')) {
$size = self::LARGE;
}
else {
if (isset($groups['medium'])) {
$size = self::MEDIUM;
}
else {
if (isset($groups['large'])) {
$size = self::LARGE;
}
}
}
return $size;
}