From 027bd0ac64d4c95cc5f4e9ca21976ca2a452d5da Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 18 Jun 2024 18:46:34 +0200 Subject: [PATCH] TestCase: removed NULL byte from class names, thx @smuuf [Closes #450][Closes #449] get_debug_type() does not output a null byte for anonymous classes --- src/Framework/TestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Framework/TestCase.php b/src/Framework/TestCase.php index e72241c4..36c766cf 100644 --- a/src/Framework/TestCase.php +++ b/src/Framework/TestCase.php @@ -214,7 +214,7 @@ private function sendMethodList(array $methods): void Environment::$checkAssertions = false; header('Content-Type: text/plain'); echo "\n"; - echo 'TestCase:' . static::class . "\n"; + echo 'TestCase:' . get_debug_type($this) . "\n"; echo 'Method:' . implode("\nMethod:", $methods) . "\n"; $dependentFiles = [];