The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6fcc22a1f8
commit
516036631c
1508 changed files with 125983 additions and 44037 deletions
22
SWIG/Examples/test-suite/php4/arrays_runme.php4
Normal file
22
SWIG/Examples/test-suite/php4/arrays_runme.php4
Normal file
|
|
@ -0,0 +1,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();
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue