Fix testsuite checks to match PHP5 wrapping.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10430 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2008-05-09 12:46:40 +00:00
commit d967ef74bd
12 changed files with 20 additions and 20 deletions

View file

@ -3,7 +3,7 @@
require "tests.php4";
require "abstract_inherit_ok.php";
check::classes(array(foo,spam));
check::classes(array(Foo,Spam));
$spam=new Spam();
check::equal(0,$spam->blah(),"spam object method");

View file

@ -3,7 +3,7 @@
require "tests.php4";
require "abstract_inherit.php";
check::classes(array(foo,bar,spam,nrfilter_i,nrrcfilter_i,nrrcfilterpro_i,nrrcfilterpri_i));
check::classes(array(Foo,Bar,Spam,NRFilter_i,NRRCFilter_i,NRRCFilterpro_i,NRRCFilterpri_i));
// This constructor attempt should fail as there isn't one
//$spam=new Spam();

View file

@ -4,10 +4,10 @@
require "tests.php4";
require "add_link.php";
// No new functions
check::functions(array());
// No new classes
check::classes(array(foo));
// No new functions, except the flat functions
check::functions(array(new_foo,foo_blah));
check::classes(array(Foo));
$foo=new foo();
check::is_a($foo,foo);

View file

@ -4,8 +4,8 @@
require "tests.php4";
require "arrays_global.php";
check::functions(array(test_a,test_b));
check::classes(array(simplestruct,material));
check::functions(array(test_a,test_b,new_simplestruct,new_material));
check::classes(array(arrays_global,SimpleStruct,Material));
check::globals(array(array_c,array_sc,array_uc,array_s,array_us,array_i,array_ui,array_l,array_ul,array_ll,array_f,array_d,array_struct,array_structpointers,array_ipointers,array_enum,array_enumpointers,array_const_i,beginstring_fix44a,beginstring_fix44b,beginstring_fix44c,beginstring_fix44d,beginstring_fix44e,beginstring_fix44f,chitmat,hitmat_val,hitmat));
check::set(array_c,"hac");
check::equal("ha",check::get(array_c,"ha"),"set array_c");

View file

@ -4,8 +4,8 @@
require "tests.php4";
require "arrays_global_twodim.php";
check::functions(array(fn_taking_arrays,get_2d_array));
check::classes(array(simplestruct,material));
check::functions(array(fn_taking_arrays,get_2d_array,new_simplestruct,new_material));
check::classes(array(arrays_global_twodim,SimpleStruct,Material));
check::globals(array(array_c,array_sc,array_uc,array_s,array_us,array_i,array_ui,array_l,array_ul,array_ll,array_f,array_d,array_struct,array_structpointers,array_ipointers,array_enum,array_enumpointers,array_const_i,chitmat,hitmat_val,hitmat));
$a1=array(10,11,12,13);
$a2=array(14,15,16,17);

View file

@ -5,9 +5,9 @@ require "tests.php4";
require "arrays_scope.php";
// No new functions
check::functions(array());
check::functions(array(new_bar,bar_blah));
// No new classes
check::classes(array(bar));
check::classes(array(arrays_scope,Bar));
// now new vars
check::globals(array());

View file

@ -5,9 +5,9 @@ require "tests.php4";
require "casts.php";
// No new functions
check::functions(array());
check::functions(array(new_a,a_hello,new_b));
// No new classes
check::classes(array(a,b));
check::classes(array(A,B));
// now new vars
check::globals(array());

View file

@ -4,8 +4,8 @@
require "tests.php4";
require "class_ignore.php";
check::functions(array(do_blah));
check::classes(array(bar,boo,far,hoo));
check::functions(array(do_blah,new_bar,bar_blah,new_boo,boo_away,new_far,new_hoo));
check::classes(array(class_ignore,Bar,Boo,Far,Hoo));
// No new vars
check::globals(array());

View file

@ -4,7 +4,7 @@
require "tests.php4";
require "conversion_namespace.php";
check::classes(array("foo","bar"));
check::classes(array("Foo","Bar"));
$bar=new Bar;
check::classname("bar",$bar);
$foo=$bar->toFoo();

View file

@ -3,7 +3,7 @@
require "tests.php4";
require "conversion_ns_template.php";
check::classes(array("foo_one","bar_one","hi"));
check::classes(array("conversion_ns_template","Foo_One","Bar_One","Hi"));
// this is too hard, I'm not sure what to test for,
check::done();

View file

@ -4,7 +4,7 @@
require "tests.php4";
require "conversion.php";
check::classes(array("foo","bar"));
check::classes(array("Foo","Bar"));
$bar=new Bar;
check::classname("bar",$bar);
$foo=$bar->toFoo();

View file

@ -7,7 +7,7 @@ require "cpp_static.php";
// No new functions
check::functions(array());
// No new classes
check::classes(array(staticmembertest,staticfunctiontest));
check::classes(array(StaticMemberTest,StaticFunctionTest));
// now new vars
check::globals(array());