File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug43200.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 1 month ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

    1: --TEST--
    2: Bug #43200 (Interface implementation / inheritence not possible in abstract classes)
    3: --FILE--
    4: <?php
    5: 
    6: interface a {
    7: 	function foo();
    8: 	function bar();
    9: }
   10: interface b {
   11: 	function foo();
   12: }
   13: 
   14: abstract class c {
   15: 	function bar() { }
   16: }
   17: 
   18: class x extends c implements a, b {
   19: 	function foo() { }
   20: }
   21: 
   22: ReflectionClass::export('x');
   23: 
   24: ?>
   25: --EXPECTF--
   26: Class [ <user> class x extends c implements a, b ] {
   27:   @@ %s 15-17
   28: 
   29:   - Constants [0] {
   30:   }
   31: 
   32:   - Static properties [0] {
   33:   }
   34: 
   35:   - Static methods [0] {
   36:   }
   37: 
   38:   - Properties [0] {
   39:   }
   40: 
   41:   - Methods [2] {
   42:     Method [ <user, prototype b> public method foo ] {
   43:       @@ %s 16 - 16
   44:     }
   45: 
   46:     Method [ <user, inherits c, prototype a> public method bar ] {
   47:       @@ %s 12 - 12
   48:     }
   49:   }
   50: }
   51: 

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