summaryrefslogtreecommitdiff
path: root/Zend/tests/traits/bugs/interfaces.phpt
blob: b632b73be29df0708a7bdc3c8a7f14b9d7fc6f7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Make sure trait does not implement an interface.
--FILE--
<?php
error_reporting(E_ALL);

interface MyInterface {
	public function a();
}

trait THello implements MyInterface {
  public function a() {
    echo 'A';
  }
}

?>
--EXPECTF--	
Parse error: syntax error, unexpected 'implements' (T_IMPLEMENTS), expecting '{' in %s on line %d