xref: /PHP-7.2/Zend/tests/traits/static_001.phpt (revision f1d7e3ca)
1--TEST--
2Traits with static methods.
3--CREDITS--
4Simas Toleikis simast@gmail.com
5--FILE--
6<?php
7
8	trait TestTrait {
9		public static function test() {
10			return 'Test';
11		}
12	}
13
14	class A {
15		use TestTrait;
16	}
17
18	echo A::test();
19
20?>
21--EXPECT--
22Test
23