summaryrefslogtreecommitdiff
path: root/tests/classes/ctor_dtor.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/classes/ctor_dtor.phpt')
-rw-r--r--tests/classes/ctor_dtor.phpt48
1 files changed, 0 insertions, 48 deletions
diff --git a/tests/classes/ctor_dtor.phpt b/tests/classes/ctor_dtor.phpt
deleted file mode 100644
index fce1c19907..0000000000
--- a/tests/classes/ctor_dtor.phpt
+++ /dev/null
@@ -1,48 +0,0 @@
---TEST--
-ZE2 The new constructor/destructor is called
---SKIPIF--
-<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
---FILE--
-<?php
-
-class early {
- function early() {
- echo __CLASS__ . "::" . __FUNCTION__ . "\n";
- }
- function __construct() {
- echo __CLASS__ . "::" . __FUNCTION__ . "\n";
- }
- function __destruct() {
- echo __CLASS__ . "::" . __FUNCTION__ . "\n";
- }
-}
-
-class late {
- function __construct() {
- echo __CLASS__ . "::" . __FUNCTION__ . "\n";
- }
- function late() {
- echo __CLASS__ . "::" . __FUNCTION__ . "\n";
- }
- function __destruct() {
- echo __CLASS__ . "::" . __FUNCTION__ . "\n";
- }
-}
-
-$t = new early();
-$t->early();
-unset($t);
-$t = new late();
-$t->late();
-//unset($t); delay to end of script
-
-echo "Done\n";
-?>
---EXPECTF--
-early::__construct
-early::early
-early::__destruct
-late::__construct
-late::late
-Done
-late::__destruct