From f3d6d9fb14221a7dd1a4e1bcfc75a9f3a34521b8 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 24 Sep 2023 21:37:04 +0000 Subject: [PATCH] fix tests --- tests/Autoloader.php | 5 +---- tests/phpunit_default.xml | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/Autoloader.php b/tests/Autoloader.php index d2d0080..3e4fb27 100755 --- a/tests/Autoloader.php +++ b/tests/Autoloader.php @@ -79,10 +79,7 @@ final class Autoloader $class = \strtr($class, '_\\', '//'); foreach (self::$paths as $path) { - $file = $path . $class . '.php'; - $file = \str_replace('/Modules/', '/', $file); - - if (\is_file($file)) { + if (\is_file($file = $path . $class . '.php')) { include_once $file; return; diff --git a/tests/phpunit_default.xml b/tests/phpunit_default.xml index f5cc76f..1ddff9f 100755 --- a/tests/phpunit_default.xml +++ b/tests/phpunit_default.xml @@ -47,7 +47,7 @@ - +