fix tests

This commit is contained in:
Dennis Eichhorn 2023-09-24 21:37:04 +00:00
parent 542974ca59
commit e79e755ebd
2 changed files with 2 additions and 5 deletions

View File

@ -79,10 +79,7 @@ final class Autoloader
$class = \strtr($class, '_\\', '//'); $class = \strtr($class, '_\\', '//');
foreach (self::$paths as $path) { foreach (self::$paths as $path) {
$file = $path . $class . '.php'; if (\is_file($file = $path . $class . '.php')) {
$file = \str_replace('/Modules/', '/', $file);
if (\is_file($file)) {
include_once $file; include_once $file;
return; return;

View File

@ -47,7 +47,7 @@
<php> <php>
<const name="WEB_SERVER_HOST" value="localhost"/> <const name="WEB_SERVER_HOST" value="localhost"/>
<const name="WEB_SERVER_PORT" value="1234"/> <const name="WEB_SERVER_PORT" value="1234"/>
<const name="WEB_SERVER_DOCROOT" value="./"/> <const name="WEB_SERVER_DOCROOT" value="./Karaka"/>
<const name="RESET" value="1"/> <const name="RESET" value="1"/>
</php> </php>
</phpunit> </phpunit>