PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/trunk/Examples/test-suite/php/arrays_runme.php

#
PHP | 17 lines | 13 code | 4 blank | 0 comment | 0 complexity | 74394cb66ffd8c1e8fb67dcdee61a81e MD5 | raw file
 1<?php
 2require "tests.php";
 3require "arrays.php";
 4
 5check::functions(array(fn_taking_arrays,newintpointer,setintfrompointer,getintfrompointer,array_pointer_func));
 6check::classes(array(arrays,SimpleStruct,ArrayStruct,CartPoseData_t));
 7check::globals(array(simplestruct_double_field,arraystruct_array_c,arraystruct_array_sc,arraystruct_array_uc,arraystruct_array_s,arraystruct_array_us,arraystruct_array_i,arraystruct_array_ui,arraystruct_array_l,arraystruct_array_ul,arraystruct_array_ll,arraystruct_array_f,arraystruct_array_d,arraystruct_array_struct,arraystruct_array_structpointers,arraystruct_array_ipointers,arraystruct_array_enum,arraystruct_array_enumpointers,arraystruct_array_const_i,cartposedata_t_p));
 8
 9$ss=new simplestruct();
10check::classname(simplestruct,$ss);
11
12$as=new arraystruct();
13$as->array_c="abc";
14check::equal($as->array_c,"a",'$as->array_c=="a"');
15
16check::done();
17?>