Restore checks for globals in php testcases

This commit is contained in:
Olly Betts 2021-04-14 11:15:43 +12:00
commit 8cb0c185ac
38 changed files with 99 additions and 58 deletions

View file

@ -7,6 +7,8 @@ require "ignore_parameter.php";
check::functions(array('jaguar','lotus','tvr','ferrari','fiat','sportscars_daimler','sportscars_astonmartin','sportscars_bugatti','sportscars_lamborghini','sportscars_maseratti'));
// New classes
check::classes(array('ignore_parameter','SportsCars','MiniCooper','MorrisMinor','FordAnglia','AustinAllegro'));
// No new vars
check::globals(array());
check::equal(jaguar(2,3.4),"hello",'jaguar(2,3.4)=="hello"');
check::equal(lotus("eek",3.4),101,'lotus("eek",3.4)==101');