From 8a56070621a080ab1dc477fcfca3de6266442566 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 22 May 2024 22:00:14 +0200 Subject: [PATCH] Use `strtolower` --- tests/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 8dedfd7..1770859 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -6,7 +6,7 @@ function cli_autoload( $className ) { $fileName = ''; $namespace = ''; if ($lastNsPos = strrpos($className, '\\')) { - $namespace = substr($className, 0, $lastNsPos); + $namespace = strtolower(substr($className, 0, $lastNsPos)); $className = substr($className, $lastNsPos + 1); $fileName = str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR; }