xref: /PHP-5.5/Zend/tests/lsb_004.phpt (revision 166266df)
1--TEST--
2ZE2 Late Static Binding testing get_called_class()
3--FILE--
4<?php
5
6class TestClass {
7	public static function getClassName() {
8		return get_called_class();
9	}
10}
11
12class ChildClass extends TestClass {}
13
14echo TestClass::getClassName() . "\n";
15echo ChildClass::getClassName() . "\n";
16?>
17==DONE==
18--EXPECTF--
19TestClass
20ChildClass
21==DONE==
22