aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/php/overload_copy_runme.php
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/php/overload_copy_runme.php')
-rw-r--r--Examples/test-suite/php/overload_copy_runme.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/Examples/test-suite/php/overload_copy_runme.php b/Examples/test-suite/php/overload_copy_runme.php
new file mode 100644
index 000000000..893a715c5
--- /dev/null
+++ b/Examples/test-suite/php/overload_copy_runme.php
@@ -0,0 +1,13 @@
+<?php
+require "tests.php";
+
+// No new functions
+check::functions(array());
+check::classes(array('Foo'));
+// No new vars
+check::globals(array());
+
+$f = new Foo();
+$g = new Foo($f);
+
+check::done();