Annotation of embedaddon/php/tests/classes/destructor_visibility_001.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: ZE2 Ensuring destructor visibility
                      3: --SKIPIF--
                      4: <?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
                      5: --FILE--
                      6: <?php
                      7: 
                      8: class Base {
                      9:        private function __destruct() {
                     10:        echo __METHOD__ . "\n";
                     11:        }
                     12: }
                     13: 
                     14: class Derived extends Base {
                     15: }
                     16: 
                     17: $obj = new Derived;
                     18: 
                     19: unset($obj);
                     20: 
                     21: ?>
                     22: ===DONE===
                     23: --EXPECTF--
                     24: Fatal error: Call to private Derived::__destruct() from context '' in %sdestructor_visibility_001.php on line %d

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