xref: /PHP-7.2/Zend/tests/traits/bugs/interfaces.phpt (revision 17ccbeec)
1--TEST--
2Make sure trait does not implement an interface.
3--FILE--
4<?php
5error_reporting(E_ALL);
6
7interface MyInterface {
8	public function a();
9}
10
11trait THello implements MyInterface {
12  public function a() {
13    echo 'A';
14  }
15}
16
17?>
18--EXPECTF--
19Parse error: syntax error, unexpected 'implements' (T_IMPLEMENTS), expecting '{' in %s on line %d
20