Annotation of embedaddon/php/Zend/tests/traits/interface_002.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Checking error message when the trait doesn't implements the interface
3: --FILE--
4: <?php
5:
6: trait foo {
7: public function a() {
8: }
9: }
10:
11: interface baz {
12: public function abc();
13: }
14:
15: class bar implements baz {
16: use foo;
17:
18: }
19:
20: new bar;
21:
22: ?>
23: --EXPECTF--
24: Fatal error: Class bar contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (baz::abc) in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>