From 2f4a532eddff3583fcd5343d878b2a2382afb285 Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Thu, 2 Mar 2023 09:47:37 +0800 Subject: [PATCH] Remove unneeded test, run static analysis on PHP 8.1 --- .github/workflows/code-analysis.yaml | 4 ++-- tests/Extension/ExtendableTest.php | 8 -------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/code-analysis.yaml b/.github/workflows/code-analysis.yaml index f4b411a25..b74a4fd33 100644 --- a/.github/workflows/code-analysis.yaml +++ b/.github/workflows/code-analysis.yaml @@ -28,7 +28,7 @@ jobs: id: extcache uses: shivammathur/cache-extensions@v1 with: - php-version: '8.0' + php-version: '8.1' extensions: ${{ env.extensions }} key: ${{ env.key }} @@ -42,7 +42,7 @@ jobs: - name: Install PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.0' + php-version: '8.1' extensions: ${{ env.extensions }} coverage: none diff --git a/tests/Extension/ExtendableTest.php b/tests/Extension/ExtendableTest.php index 7390baa23..d4243a5cb 100644 --- a/tests/Extension/ExtendableTest.php +++ b/tests/Extension/ExtendableTest.php @@ -172,14 +172,6 @@ public function testAccessingProtectedStaticMethod() echo ExtendableTestExampleExtendableClass::protectedMars(); } - public function testInvalidImplementValue() - { - $this->expectException(Exception::class); - $this->expectExceptionMessage('Class ExtendableTestInvalidExtendableClass contains an invalid $implement value'); - - $result = new ExtendableTestInvalidExtendableClass; - } - public function testSoftImplementFake() { $result = $this->mockClassLoader(ExtendableTestExampleExtendableSoftImplementFakeClass::class);