test: add (failing) test for different types of const define
This commit is contained in:
parent
885d100fbf
commit
9b5b72392f
12
fixtures/0009-consts.php
Normal file
12
fixtures/0009-consts.php
Normal 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;
|
Loading…
Reference in New Issue
Block a user