php-src/Zend/tests/lsb_004.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

20 lines
323 B
PHP

--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