aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/php4/arrays_runme.php4
blob: ee240e58f1bb76ec4e502431cef868b96e484afa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
// Sample test file

require "tests.php4";
require "arrays.php";

// No new functions
check::functions(array(fn_taking_arrays,newintpointer,setintfrompointer,getintfrompointer));
// No new classes
check::classes(array(simplestruct,arraystruct));
// now 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();
?>