phpunit test must be installed in www/ folder

Because www folder is source base, if phpunit is installed outside it
cannot find the classes
This commit is contained in:
Clemens Schwaighofer
2023-02-22 06:31:50 +09:00
parent fa0b102d1a
commit 6133da9069
1130 changed files with 5160 additions and 5120 deletions
+12
View File
@@ -31,6 +31,18 @@ class ComposerAutoloaderInit10fe8fe2ec4017b8644d2b64bcf398b9
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit10fe8fe2ec4017b8644d2b64bcf398b9::$files;
$requireFile = static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
require $file;
}
};
foreach ($filesToLoad as $fileIdentifier => $file) {
($requireFile)($fileIdentifier, $file);
}
return $loader;
}
}