mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-14 19:18:41 +00:00
test fix
This commit is contained in:
parent
5f551fe5f3
commit
3200e2abed
|
|
@ -12,9 +12,9 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace tests;
|
||||
namespace phpOMS\tests;
|
||||
|
||||
\spl_autoload_register('\tests\Autoloader::defaultAutoloader');
|
||||
\spl_autoload_register('\phpOMS\tests\Autoloader::defaultAutoloader');
|
||||
|
||||
/**
|
||||
* Autoloader class.
|
||||
|
|
@ -79,6 +79,8 @@ class Autoloader
|
|||
|
||||
if (\stripos($class, 'Web/Backend') !== false || \stripos($class, 'Web/Api') !== false) {
|
||||
$class = \str_replace('Web/', 'Install/Application/', $class);
|
||||
} elseif (\stripos($class, 'Autoloader.php')) {
|
||||
$class = 'tests/Autoloader.php';
|
||||
}
|
||||
|
||||
$class2 = $class;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user