summaryrefslogtreecommitdiff
path: root/Zend/tests/lsb_004.phpt
blob: 9583ef254704024586401f84d8b45a2a7790b2be (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==
--EXPECT--
TestClass
ChildClass
==DONE==