xref: /PHP-5.4/Zend/tests/traits/language019.phpt (revision 3f8c729e)
1--TEST--
2final alias
3--FILE--
4<?php
5trait T1 {
6	function foo() {}
7}
8class C1 {
9	use T1 {
10		T1::foo as final;
11	}
12}
13?>
14--EXPECTF--
15Fatal error: Cannot use 'final' as method modifier in %s on line %d
16