addTest(AcceptanceTests_AllTests::suite()); return $suite; } } function loadTikiLibraries() { /* * Note: for some reason, we need to declare many of the Tiki global variables * here, otherwise they end up being NULL. * * Below, I declare those variables that seem most critical, and so far * my experiments work with just those 4. But we may need to define * more of them. * * To find out all the global variables that are defined in a particular * tiki script, you can add the following statement at the bottom of the script: * * print "
-- upon exit, array_keys(\$GLOBAlS)="; var_dump(array_keys($GLOBALS)); print "\n";See a longer list of potentialOne way to find out global Tiki variables * * Note that most of those global variables will be system variables that have nothing * to do with Tiki, so we probably can ignore most of them. */ require_once('tiki-setup.php'); $wikilib = TikiLib::lib('wiki'); $multilinguallib = TikiLib::lib('multilingual'); $tikilib = TikiLib::lib('tiki'); /* * Need to reset error reporting because it is changed by * some of the tiki include files */ ini_set('display_errors', 'on'); error_reporting(E_ALL); ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . '.' . PATH_SEPARATOR . '../../lib' . PATH_SEPARATOR . '../..'); /* * Note: Need to reset the include pathes relative to the root of tiki, because * inclusion of the tiki files, move the currrent directory * to the root. */ ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . './lib/test' . PATH_SEPARATOR . './lib' . PATH_SEPARATOR . '.'); }