summaryrefslogtreecommitdiff
path: root/Zend/tests/lsb_004.phpt
blob: 3f26e339c36b23984d3ec0d9397f24e81a405584 (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