From 84c18292c9dab5d1c42769221054496774a4b0a7 Mon Sep 17 00:00:00 2001 From: Kei Date: Sat, 3 Aug 2024 08:34:29 +0700 Subject: [PATCH] test: `lowercase_static_reference` --- tests/Fixtures/Ruleset/relax_actual.php | 6 ++++++ tests/Fixtures/Ruleset/relax_expected.php | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/tests/Fixtures/Ruleset/relax_actual.php b/tests/Fixtures/Ruleset/relax_actual.php index 0a3d87d..f3baf23 100644 --- a/tests/Fixtures/Ruleset/relax_actual.php +++ b/tests/Fixtures/Ruleset/relax_actual.php @@ -108,6 +108,12 @@ public function casing__lowercase_keywords() RETURN True; } + public function casing__lowercase_static_reference() + { + STATIC::baz2(); + true instanceof SELF; + } + public function casing__magic_constant_casing() { echo __dir__; diff --git a/tests/Fixtures/Ruleset/relax_expected.php b/tests/Fixtures/Ruleset/relax_expected.php index d200a7c..a64b09d 100644 --- a/tests/Fixtures/Ruleset/relax_expected.php +++ b/tests/Fixtures/Ruleset/relax_expected.php @@ -108,6 +108,12 @@ public function casing__lowercase_keywords() return true; } + public function casing__lowercase_static_reference() + { + static::baz2(); + true instanceof self; + } + public function casing__magic_constant_casing() { echo __DIR__;