Skip to content

Commit

Permalink
chore: use __CLASS__ instead of get_class (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer authored Aug 15, 2024
1 parent dd87c9d commit a80e3cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TestUtils/TestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a80e3cf

Please sign in to comment.