/opt/cpanel/ea-wappspector/vendor/phpunit/phpunit/src/Util
NameSizeModeActions
Exception/-0755rm
Http/-0755rm
PHP/-0755rm
Xml/-0755rm
Cloner.php8660644editdlrm
Color.php48510644editdlrm
ExcludeList.php57990644editdlrm
Exporter.php15810644editdlrm
Filesystem.php13610644editdlrm
Filter.php36020644editdlrm
GlobalState.php105080644editdlrm
Json.php31310644editdlrm
Reflection.php29460644editdlrm
Test.php10450644editdlrm
ThrowableToStringMapper.php14480644editdlrm
VersionComparisonOperator.php15730644editdlrm
Edit: /opt/cpanel/ea-wappspector/vendor/phpunit/phpunit/src/Util/Test.php (1045B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPUnit\Util; use function str_starts_with; use PHPUnit\Metadata\Parser\Registry; use ReflectionMethod; /** * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Test { public static function isTestMethod(ReflectionMethod $method): bool { if (!$method->isPublic()) { return false; } if (str_starts_with($method->getName(), 'test')) { return true; } $metadata = Registry::parser()->forMethod( $method->getDeclaringClass()->getName(), $method->getName(), ); return $metadata->isTest()->isNotEmpty(); } }