summaryrefslogtreecommitdiff
path: root/tests/classes/destructor_visibility_003.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/classes/destructor_visibility_003.phpt')
-rwxr-xr-xtests/classes/destructor_visibility_003.phpt28
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/classes/destructor_visibility_003.phpt b/tests/classes/destructor_visibility_003.phpt
deleted file mode 100755
index 83e3efe22e..0000000000
--- a/tests/classes/destructor_visibility_003.phpt
+++ /dev/null
@@ -1,28 +0,0 @@
---TEST--
-ZE2 Ensuring destructor visibility
---SKIPIF--
-<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
---FILE--
-<?php
-
-class Base {
- private function __destruct() {
- echo __METHOD__ . "\n";
- }
-}
-
-class Derived extends Base {
- public function __destruct() {
- echo __METHOD__ . "\n";
- }
-}
-
-$obj = new Derived;
-
-unset($obj); // Derived::__destruct is being called not Base::__destruct
-
-?>
-===DONE===
---EXPECTF--
-Derived::__destruct
-===DONE===