is_subclass_of

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks if the object has this class as one of its parents or implements it
<?php is_subclass_of(mixed $object_or_class, string $class, bool $allow_string = true): bool
<?php         foreach (array_reverse($loadedClasses) as $loadedClass) {

            if (

                is_subclass_of($loadedClass, HasPrintableTestCaseName::class)

                || is_subclass_of($loadedClass, TestCase::class)) {

                try {

                    $class = new ReflectionClass($loadedClass);
<?php         foreach (array_reverse($loadedClasses) as $loadedClass) {

            if (

                is_subclass_of($loadedClass, HasPrintableTestCaseName::class)

                || is_subclass_of($loadedClass, TestCase::class)) {

                try {

                    $class = new ReflectionClass($loadedClass);