xref: /PHP-5.6/tests/lang/043.phpt (revision 9483a2ff)
1--TEST--
2Dynamic call for static methods
3--FILE--
4<?php
5class A {
6    static function foo() { return 'foo'; }
7}
8
9$classname       =  'A';
10$wrongClassname  =  'B';
11
12echo $classname::foo()."\n";
13echo $wrongClassname::foo()."\n";
14?>
15===DONE===
16--EXPECTF--
17foo
18
19Fatal error: Class 'B' not found in %s043.php on line %d
20