Arquivos
hhvm/hphp/test/quick/get_class_constants.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

16 linhas
278 B
PHP

<?
// Never True
if (rand(100,101) == 2) {
define("FOO", 1);
} else {
define("FOO", 2);
}
class Blah {
const DYNAMIC_VAL = FOO;
const STRING_VAL = "zzz";
const INT_VAL = 105;
const FP_VAL = 3.14;
const NULL_VAL = null;
}
var_dump(get_class_constants("Blah"));