You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
916 B
PHP

<?php /** @noinspection PhpUnhandledExceptionInspection */
use jrosset\Reflection\ReflectionNamespace;
require_once __DIR__ . '/../vendor/autoload.php';
$tests = ReflectionNamespace::createFromComposerMapping('\\Tests', __DIR__ . '/../vendor');
echo $tests->getShortName() . ' (' . $tests->getName() . ')' . PHP_EOL . PHP_EOL;
echo '===== NAMESPACES =====' . PHP_EOL;
foreach ($tests->getSubNamespaces(true) as $subNamespace) {
echo "\t - " . $subNamespace->getName() . PHP_EOL;
}
echo '===== CLASSES =====' . PHP_EOL;
foreach ($tests->getClasses(null, true) as $class) {
echo "\t - " . $class->getName() . PHP_EOL;
}
echo '===== INTERFACES =====' . PHP_EOL;
foreach ($tests->getInterfaces(true) as $interface) {
echo "\t - " . $interface->getName() . PHP_EOL;
}
echo '===== TRAITS =====' . PHP_EOL;
foreach ($tests->getTraits(true) as $trait) {
echo "\t - " . $trait->getName() . PHP_EOL;
}