Annotation of embedaddon/php/Zend/tests/traits/bug60153.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #60153 (Interface method prototypes not enforced when implementd via traits.)
3: --FILE--
4: <?php
5:
6: interface IFoo {
7: public function oneArgument($a);
8: }
9:
10: trait TFoo {
11: public function oneArgument() {}
12: }
13:
14: class C implements IFoo {
15: use TFoo;
16: }
17:
18: --EXPECTF--
19: Fatal error: Declaration of C::oneArgument() must be compatible with IFoo::oneArgument($a) in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>