1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 22:41:20 +02:00
Files
archived-php-src/Zend/tests/traits/static_get_called_class.phpt
2020-02-03 22:52:20 +01:00

25 lines
326 B
PHP

--TEST--
Traits and get_called_class().
--CREDITS--
Simas Toleikis simast@gmail.com
--FILE--
<?php
trait TestTrait {
public static function test() {
return get_called_class();
}
}
class A {
use TestTrait;
}
class B extends A { }
echo B::test();
?>
--EXPECT--
B