xref: /PHP-8.0/Zend/tests/traits/bugs/interfaces.phpt (revision 55a15f32)
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 token "implements", expecting "{" in %s on line %d
20