From 54fd1882997e17fb46a38a2666642d5c476ef63b Mon Sep 17 00:00:00 2001 From: faissaloux Date: Sun, 19 Mar 2023 17:46:49 +0000 Subject: [PATCH] fix test Case Name starts with a P --- src/Concerns/Testable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Concerns/Testable.php b/src/Concerns/Testable.php index e6e44488..170d2e6e 100644 --- a/src/Concerns/Testable.php +++ b/src/Concerns/Testable.php @@ -277,7 +277,7 @@ trait Testable */ public static function getPrintableTestCaseName(): string { - return ltrim(self::class, 'P\\'); + return preg_replace('/P\\\/', '', self::class, 1); } /**