test: add (failing) test for different types of const define

This commit is contained in:
mappu 2020-04-08 20:02:45 +12:00
parent 885d100fbf
commit 9b5b72392f
1 changed files with 12 additions and 0 deletions

12
fixtures/0009-consts.php Normal file
View File

@ -0,0 +1,12 @@
<?php
const GLOBALCONST = 3,
OTHERCONST = 4;
define('GLOBALDEFINE', 5);
class MyClass {
const MEMBERCONST = 6;
}
echo GLOBALCONST + OTHERCONST + GLOBALDEFINE + MyClass::MEMBERCONST;