1<?php 2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project 3// 4// All Rights Reserved. See copyright.txt for details and a complete list of authors. 5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. 6// $Id$ 7 8define('TIKI_IN_TEST', 1); 9require_once(__DIR__ . '/../TikiTestCase.php'); 10 11ini_set('display_errors', 'on'); 12error_reporting(E_ALL & ~E_DEPRECATED); 13 14ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . "." . PATH_SEPARATOR . "../../core" . PATH_SEPARATOR . "../../.."); 15include_once('./include_non_autoload_compatible_classes.php'); 16 17function tra($string) 18{ 19 return $string; 20} 21 22require __DIR__ . '/../../../vendor_bundled/vendor/autoload.php'; 23 24$tikidomain = ''; 25$api_tiki = null; 26require 'db/local.php'; 27 28if (extension_loaded("pdo") and $api_tiki == 'pdo') { 29 require_once('db/tiki-db-pdo.php'); 30} else { 31 require_once('db/tiki-db-adodb.php'); 32} 33 34$db = TikiDb::get(); 35$db->setServerType($db_tiki); 36 37$pwd = getcwd(); 38chdir(__DIR__ . '/../../../'); 39$cachelib = TikiLib::lib('cache'); 40chdir($pwd); 41