Skip to content

Commit

Permalink
Fix. Code. Auto tests autoloader fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glomberg committed Dec 11, 2023
1 parent 8de93b6 commit 58df8e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 58df8e8

Please sign in to comment.