From a80e3cf31df5f2adb67df742ab790add5c4673e2 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 15 Aug 2024 14:08:45 -0700 Subject: [PATCH] chore: use __CLASS__ instead of get_class (#146) --- src/TestUtils/TestTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TestUtils/TestTrait.php b/src/TestUtils/TestTrait.php index 65ddea5..28345cf 100644 --- a/src/TestUtils/TestTrait.php +++ b/src/TestUtils/TestTrait.php @@ -124,7 +124,7 @@ private static function runSnippet($sampleName, $params = []) $sampleFile = $sampleName; if ('/' !== $sampleName[0]) { // Default to 'src/' in sample directory - $reflector = new ReflectionClass(get_class()); + $reflector = new ReflectionClass(__CLASS__); $testDir = dirname($reflector->getFileName()); $sampleFile = sprintf('%s/../src/%s.php', $testDir, $sampleName); }