<?php declare(strict_types=1);
namespace PHPUnit\Util;
use PHPUnit\Framework\Assert;
use PHPUnit\Framework\TestCase;
use ReflectionClass;
use ReflectionMethod;
final class Reflection
{
public function publicMethodsInTestClass(ReflectionClass $class): array
{
return $this->filterMethods($class, ReflectionMethod::IS_PUBLIC);
}
public function methodsInTestClass(ReflectionClass $class): array
{
return $this->filterMethods($class, null);
}
private function filterMethods(ReflectionClass $class, ?int $filter): array
{
$methods = [];