Annotation of embedaddon/php/Zend/tests/traits/interface_001.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Using traits to implement interface
                      3: --FILE--
                      4: <?php
                      5: 
                      6: trait foo {
                      7:        public function abc() {
                      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: print "OK\n";
                     22: 
                     23: ?>
                     24: --EXPECT--
                     25: OK

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>