From c247a48cfd5c3af3545f185a04e6d2d7db474fdf Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 4 Dec 2020 06:15:59 +0100 Subject: [PATCH] ParallelLintLintTest::testDeprecated(): fix the test This test is expected to throw a deprecation warning for the PHP4-style class constructor (method named the same as the class). In PHP 8, the deprecation warning is no longer thrown and PHP4-style constructor method are now treated as _normal_ methods. This fixes the test to have the correct expectations. --- tests/ParallelLint.lint.phpt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ParallelLint.lint.phpt b/tests/ParallelLint.lint.phpt index b42a044..4ed584c 100644 --- a/tests/ParallelLint.lint.phpt +++ b/tests/ParallelLint.lint.phpt @@ -101,8 +101,8 @@ class ParallelLintLintTest extends Tester\TestCase Assert::false($result->hasSyntaxError()); Assert::equal(0, count($result->getErrors())); - if (PHP_VERSION_ID < 70000) { - Tester\Environment::skip('test for php version > 7.0'); + if (PHP_VERSION_ID < 70000 || PHP_VERSION_ID >= 80000 ) { + Tester\Environment::skip('test for php version 7.0-7.4'); } $parallelLint = new ParallelLint($this->getPhpExecutable());