Skip to content
Snippets Groups Projects
Commit 0c38e29d authored by Art4's avatar Art4
Browse files

Do not skip autoload for tests

parent d7b7f012
Branches
No related merge requests found
......@@ -19,7 +19,7 @@ if (file_exists($composer_path))
spl_autoload_register(function ($class) {
// project-specific namespace prefix and base directory with trailing /
$namespace_map = [
'Redmine\\' => __DIR__ . '/Redmine/',
'Redmine\\' => __DIR__ . '/Redmine/',
'Redmine\\Tests\\' => __DIR__ . '/../tests/',
];
......@@ -30,7 +30,7 @@ spl_autoload_register(function ($class) {
if (strncmp($prefix, $class, $len) !== 0)
{
// no, move to the next registered autoloader
return;
continue;
}
// get the relative class name
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment