Browse Source

Prevent error in CTTest::testConstants (for PHP8)

Guilliam Xavier 4 years ago
parent
commit
1a121e0750
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/Tokenizer/CTTest.php

+ 1 - 1
tests/Tokenizer/CTTest.php

@@ -74,7 +74,7 @@ final class CTTest extends TestCase
     public function testConstants($name, $value)
     {
         static::assertGreaterThan(10000, $value);
-        static::assertNull(@\constant($name), 'The CT name must not use native T_* name.');
+        static::assertFalse(\defined($name), 'The CT name must not use native T_* name.');
     }
 
     public function provideConstantsCases()