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

1.1       misho       1: --TEST--
                      2: Testing array dereferencing from instance with ArrayObject
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class foo extends ArrayObject {
                      7:        public function __construct($arr) {
                      8:                parent::__construct($arr);
                      9:        }
                     10: }
                     11: 
                     12: var_dump( (new foo( array(1, array(4, 5), 3) ))[1][0] ); // int(4)
                     13: 
                     14: ?>
                     15: --EXPECT--
                     16: int(4)

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