php-src/Zend/tests/traits/static_get_called_class.phpt
Nikita Popov 45f7b2bcc8 Fix CRLF line-endings in tests
Also fix a single instance of CRLF in ibase_query.c.
2016-11-20 22:31:24 +01:00

24 lines
No EOL
280 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