mirror of
https://github.com/php/php-src.git
synced 2024-10-01 06:46:08 +00:00
6d8760677d
- altered EXPECT for parser errors. This may or may not be a Good Thing.
22 lines
341 B
PHP
22 lines
341 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";
|
|
?>
|
|
==DONE==
|
|
--EXPECT--
|
|
TestClass
|
|
ChildClass
|
|
==DONE==
|