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.
29 lines
547 B
PHP
29 lines
547 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
require __DIR__ . '/vendor/codeigniter4/framework/system/Test/bootstrap.php';
|
|
|
|
$helperDirs = [
|
|
'src/Helpers',
|
|
'vendor/codeigniter4/framework/system/Helpers',
|
|
'vendor/codeigniter4/settings/src/Helpers',
|
|
];
|
|
|
|
foreach ($helperDirs as $dir) {
|
|
$dir = __DIR__ . '/' . $dir;
|
|
if (! is_dir($dir)) {
|
|
continue;
|
|
}
|
|
|
|
chdir($dir);
|
|
|
|
foreach (glob('*_helper.php') as $filename) {
|
|
$filePath = realpath($dir . '/' . $filename);
|
|
|
|
require_once $filePath;
|
|
}
|
|
}
|
|
|
|
chdir(__DIR__);
|