19declare(strict_types=1);
23use PHPUnit\Framework\TestSuite;
35 $namespace = preg_replace(
'/\\\\[^\\\\]+$/',
'\\', self::class);
37 foreach (self::collectTestFiles() as $file) {
38 require_once $file->getRealPath();
39 $suite->addTestSuite(
$namespace . preg_replace(
'/.php$/',
'', (
string) $file->getFileName()));
47 return new class (
new GlobIterator(__DIR__ .
'/*.php')) extends FilterIterator {
48 public function accept():
bool
50 return $this->current() instanceof SplFileInfo && __FILE__ !== $this->current()->getRealPath();
static collectTestFiles()
if($err=$client->getError()) $namespace