php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /proc/self/root/php-7.1.11/ext/reflection/tests/ |
| files >> //proc/self/root/php-7.1.11/ext/reflection/tests/ReflectionClassConstant_getValue.phpt |
--TEST--
Test variations of getting constant values
--FILE--
<?php
/* Use separate classes to make sure that in-place constant updates don't interfere */
class A {
const X = self::Y * 2;
const Y = 1;
}
class B {
const X = self::Y * 2;
const Y = 1;
}
class C {
const X = self::Y * 2;
const Y = 1;
}
var_dump((new ReflectionClassConstant('A', 'X'))->getValue());
echo new ReflectionClassConstant('B', 'X');
echo new ReflectionClass('C');
?>
--EXPECTF--
int(2)
Constant [ public integer X ] { 2 }
Class [ <user> class C ] {
@@ %s 12-15
- Constants [2] {
Constant [ public integer X ] { 2 }
Constant [ public integer Y ] { 1 }
}
- Static properties [0] {
}
- Static methods [0] {
}
- Properties [0] {
}
- Methods [0] {
}
}
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`