From 58df8e8384929f5de5e53462701f37e84208b927 Mon Sep 17 00:00:00 2001 From: Glomberg Date: Mon, 11 Dec 2023 11:51:17 +0300 Subject: [PATCH] Fix. Code. Auto tests autoloader fixed. --- tests/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 7386fad..f83dbbb 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -13,7 +13,7 @@ // Register class auto loader // Custom modules1 if ( strpos($class, 'CleantalkSP') !== false ) { - $class = str_replace('CleantalkSP\Common\Scanner\HeuristicAnalyser\\', DIRECTORY_SEPARATOR, $class); + $class = str_replace(array('CleantalkSP\Common\Scanner\HeuristicAnalyser\\', '\\'), DIRECTORY_SEPARATOR, $class); $class_file = dirname(__DIR__) . $class . '.php'; if ( file_exists($class_file) ) { require_once($class_file);