From 99913a7c9da26408e0b195e96e85ee07f7b25626 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 5 Jun 2024 16:34:20 +1200 Subject: [PATCH] ENH Use class name instead of self --- tests/SnifferFixTest.php | 2 +- tests/SnifferTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/SnifferFixTest.php b/tests/SnifferFixTest.php index c3429cb..693ebca 100644 --- a/tests/SnifferFixTest.php +++ b/tests/SnifferFixTest.php @@ -23,7 +23,7 @@ public function testFix() // backup original content $orig = []; - $paths = self::getFilesList($sniffer); + $paths = SnifferFixTest::getFilesList($sniffer); /** @var string $path */ foreach ($paths as $path => $v) { $orig[$path] = file_get_contents($path); diff --git a/tests/SnifferTest.php b/tests/SnifferTest.php index e5f9dfc..f79373c 100644 --- a/tests/SnifferTest.php +++ b/tests/SnifferTest.php @@ -27,7 +27,7 @@ public function testFindFencedCodeBlocks( } $sniffer = new Sniffer(); - $files = self::getFilesList($sniffer); + $files = SnifferTest::getFilesList($sniffer); $findFencedCodeblocks = new ReflectionMethod($sniffer, 'findFencedCodeblocks'); $findFencedCodeblocks->setAccessible(true);