xref: /PHP-5.5/Zend/tests/traits/error_013.phpt (revision 7b7463bb)
1--TEST--
2Trying to use static as method modifier
3--FILE--
4<?php
5
6trait foo {
7	public function test() { return 3; }
8}
9
10class bar {
11	use foo { test as static; }
12}
13
14$x = new bar;
15var_dump($x->test());
16
17?>
18--EXPECTF--
19Fatal error: Cannot use 'static' as method modifier in %s on line %d
20