summaryrefslogtreecommitdiff
path: root/Zend/tests/lsb_004.phpt
blob: 84d6ad35f0d0ebb732f099107c0c2660555811e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--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";
?>
--EXPECT--
TestClass
ChildClass