xref: /PHP-7.4/Zend/tests/lsb_004.phpt (revision ded3d984)
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--EXPECT--
19TestClass
20ChildClass
21==DONE==
22