ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilServicesDataProtectionSuite.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 {
25  public static function suite(): self
26  {
27  $suite = new self();
28  $previous = get_declared_classes();
29  foreach (new RegExIterator(
31  new RecursiveDirectoryIterator(__DIR__, FilesystemIterator::SKIP_DOTS),
32  RecursiveIteratorIterator::LEAVES_ONLY
33  ),
34  '/.*\.php$/'
35  ) as $file) {
37  require_once $file->getPathname();
38  }
39 
40  $now = get_declared_classes();
41  $new_classes = array_diff($now, $previous);
42  array_map($suite->addTestSuite(...), $new_classes);
43 
44  return $suite;
45  }
46 }