=')) ? 'PHPUnit/Autoload.php' : 'PHPUnit/Framework.php'; abstract class TikiDatabaseTestCase extends PHPUnit\DbUnit\TestCase { private static $pdo; private $conn; public function getConnection() { require(__DIR__ . '/local.php'); $dbType = $db_tiki; if ($dbType === 'mysqli' || $dbType = 'mysqlpo' || $dbType = 'mysqlt') { $dbType = 'mysql'; // force the db type as mysql, all these are AdoDB drivers for mysql } if ($this->conn === null) { if (self::$pdo === null) { self::$pdo = new PDO("$dbType:host=$host_tiki;dbname=$dbs_tiki", $user_tiki, $pass_tiki); } $this->conn = $this->createDefaultDBConnection(self::$pdo); } return $this->conn; } }