php-src/Zend/tests/traits/static_002.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

23 lines
No EOL
290 B
PHP

--TEST--
Traits with static methods referenced using variable.
--CREDITS--
Simas Toleikis simast@gmail.com
--FILE--
<?php
trait TestTrait {
public static function test() {
return 'Test';
}
}
class A {
use TestTrait;
}
$class = "A";
echo $class::test();
?>
--EXPECT--
Test