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);