summaryrefslogtreecommitdiff
path: root/Examples/test-suite/php/arrays_runme.php
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/php/arrays_runme.php')
-rw-r--r--Examples/test-suite/php/arrays_runme.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/Examples/test-suite/php/arrays_runme.php b/Examples/test-suite/php/arrays_runme.php
new file mode 100644
index 000000000..97ee6bbbf
--- /dev/null
+++ b/Examples/test-suite/php/arrays_runme.php
@@ -0,0 +1,19 @@
+<?php
+// Sample test file
+require "tests.php";
+require "arrays.php";
+
+check::functions(array(fn_taking_arrays,newintpointer,setintfrompointer,getintfrompointer,array_pointer_func));
+check::classes(array(arrays,SimpleStruct,ArrayStruct,CartPoseData_t));
+// No new vars
+check::globals(array());
+
+$ss=new simplestruct();
+check::classname(simplestruct,$ss);
+
+$as=new arraystruct();
+$as->array_c="abc";
+check::equal($as->array_c,"ab",'$as->array_c=="ab"');
+
+check::done();
+?>