blob: 6baeba00bddc3986258abd86c0eccab295473066 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--TEST--
ZE2 Late Static Binding testing get_called_class()
--FILE--
<?php
class TestClass {
public static function getClassName() {
return get_called_class();
}
}
class ChildClass extends TestClass {}
echo TestClass::getClassName() . "\n";
echo ChildClass::getClassName() . "\n";
?>
==DONE==
--EXPECTF--
TestClass
ChildClass
==DONE==
|