summaryrefslogtreecommitdiff
path: root/tests/php/phpt/class_obj/002.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/php/phpt/class_obj/002.phpt')
-rw-r--r--tests/php/phpt/class_obj/002.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/php/phpt/class_obj/002.phpt b/tests/php/phpt/class_obj/002.phpt
new file mode 100644
index 0000000..847e602
--- /dev/null
+++ b/tests/php/phpt/class_obj/002.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Test constructor & destructor
+--SKIPIF--
+<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
+--FILEEOF--
+<?php
+
+echo count(new TestBaseClass\MyClass($x));
+
+echo PHP_EOL;
+--EXPECT--
+MyCustomClass::MyCustomClass()
+MyCustomClass::~MyCustomClass
+33 \ No newline at end of file