From a4a6a08bd4a461e516b9c3b8fdbf0f1883b34158 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sat, 26 Oct 2024 11:44:48 +0200 Subject: [PATCH] Remove dead test because of raised min-php version --- .../Classes/RequireParentConstructCallRuleTest.php | 9 --------- .../data/call-to-parent-constructor-php-lt-74.php | 11 ----------- 2 files changed, 20 deletions(-) delete mode 100644 tests/Rules/Classes/data/call-to-parent-constructor-php-lt-74.php diff --git a/tests/Rules/Classes/RequireParentConstructCallRuleTest.php b/tests/Rules/Classes/RequireParentConstructCallRuleTest.php index e8d63620..db0c8bae 100644 --- a/tests/Rules/Classes/RequireParentConstructCallRuleTest.php +++ b/tests/Rules/Classes/RequireParentConstructCallRuleTest.php @@ -4,7 +4,6 @@ use PHPStan\Rules\Rule; use PHPStan\Testing\RuleTestCase; -use const PHP_VERSION_ID; /** * @extends RuleTestCase @@ -44,12 +43,4 @@ public function testCheckInTraits(): void $this->analyse([__DIR__ . '/data/call-to-parent-constructor-in-trait.php'], []); } - public function testCallsParentButHasNotParent(): void - { - if (PHP_VERSION_ID >= 70400) { - self::markTestSkipped('This test does not support PHP 7.4 or higher.'); - } - $this->analyse([__DIR__ . '/data/call-to-parent-constructor-php-lt-74.php'], []); - } - } diff --git a/tests/Rules/Classes/data/call-to-parent-constructor-php-lt-74.php b/tests/Rules/Classes/data/call-to-parent-constructor-php-lt-74.php deleted file mode 100644 index 79616947..00000000 --- a/tests/Rules/Classes/data/call-to-parent-constructor-php-lt-74.php +++ /dev/null @@ -1,11 +0,0 @@ -