xref: /PHP-7.2/Zend/tests/traits/bug60145.phpt (revision 3b74bba7)
1--TEST--
2Bug #60145 (Usage of trait's use statement inside interfaces not properly checked.)
3--FILE--
4<?php
5
6trait foo {
7
8}
9
10interface MyInterface {
11	use foo;
12
13	public function b();
14
15}
16--EXPECTF--
17Fatal error: Cannot use traits inside of interfaces. foo is used in MyInterface in %s on line %d
18