Fix case sensitive mismatches in tests (6/N)
[hiphop-php.git] / hphp / test / slow / variable_class_name / 1870.php
blob92bce262eec43b17fdebf287cf4d15112798cc31
1 <?hh
3 class A {
4 const C = 123;
5 static public $foo = 456;
6 <<__DynamicallyCallable>>
7 public static function bar() {
8 return 789;
12 <<__EntryPoint>>
13 function main_1870() {
14 $cls = 'A';
16 var_dump($cls::C);
17 // ClassConstant
19 var_dump($cls::$foo);
20 // StaticMember
21 $cls::$foo = 'test';
22 var_dump($cls::$foo);
23 // l-value
25 var_dump($cls::bar());
26 // SimpleFunctionCall
28 $func = 'bar';
29 var_dump($cls::$func());