From bddbf30d51b63d9d0355b38fd53a6954a8eb0364 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 5 Jun 2024 15:14:11 +1200 Subject: [PATCH] ENH Use class name instead of self --- tests/AtomFeedTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/AtomFeedTest.php b/tests/AtomFeedTest.php index 716ca6e..1daf9c7 100644 --- a/tests/AtomFeedTest.php +++ b/tests/AtomFeedTest.php @@ -65,8 +65,8 @@ protected function setUp(): void { parent::setUp(); Config::modify()->set(Director::class, 'alternate_base_url', '/'); - if (!self::$original_host) { - self::$original_host = $_SERVER['HTTP_HOST']; + if (!AtomFeedTest::$original_host) { + AtomFeedTest::$original_host = $_SERVER['HTTP_HOST']; } $_SERVER['HTTP_HOST'] = 'www.example.org'; } @@ -75,6 +75,6 @@ protected function tearDown(): void { parent::tearDown(); Config::modify()->set(Director::class, 'alternate_base_url', null); - $_SERVER['HTTP_HOST'] = self::$original_host; + $_SERVER['HTTP_HOST'] = AtomFeedTest::$original_host; } }