summaryrefslogtreecommitdiff
path: root/Examples/test-suite/php/arrays_runme.php
blob: 97ee6bbbf6461e72f1d6d468c9c49d3d3c49f3b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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();
?>