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

1.1       misho       1: --TEST--
                      2: Indirect method call and cloning
                      3: --FILE--
                      4: <?php
                      5: 
                      6: 
                      7: class bar {
                      8:        public $z;
                      9: 
                     10:        public function __construct() {
                     11:                $this->z = new stdclass;
                     12:        }
                     13:        public function getZ() {
                     14:                return $this->z;
                     15:        }
                     16: }
                     17: 
                     18: var_dump(clone (new bar)->z);
                     19: var_dump(clone (new bar)->getZ());
                     20: 
                     21: ?>
                     22: --EXPECTF--
                     23: object(stdClass)#%d (0) {
                     24: }
                     25: object(stdClass)#%d (0) {
                     26: }

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