xref: /PHP-5.6/Zend/tests/traits/bugs/interfaces.phpt (revision b501570a)
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--
19Fatal error: Cannot use 'MyInterface' as interface on 'THello' since it is a Trait in %s on line %d