Skip to content

Commit c247a48

Browse files
jrfnlgrogy
authored andcommitted
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.
1 parent 45ea3b4 commit c247a48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ParallelLint.lint.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ class ParallelLintLintTest extends Tester\TestCase
101101
Assert::false($result->hasSyntaxError());
102102
Assert::equal(0, count($result->getErrors()));
103103

104-
if (PHP_VERSION_ID < 70000) {
105-
Tester\Environment::skip('test for php version > 7.0');
104+
if (PHP_VERSION_ID < 70000 || PHP_VERSION_ID >= 80000 ) {
105+
Tester\Environment::skip('test for php version 7.0-7.4');
106106
}
107107

108108
$parallelLint = new ParallelLint($this->getPhpExecutable());

0 commit comments

Comments
 (0)