1<?php 2/** 3 * Prepare the test setup. 4 */ 5require_once __DIR__ . '/Base.php'; 6 7/** 8 * Copyright 2010-2017 Horde LLC (http://www.horde.org/) 9 * 10 * @author Jan Schneider <jan@horde.org> 11 * @category Horde 12 * @package Content 13 * @subpackage UnitTests 14 * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 15 */ 16class Content_Sql_MysqlTest extends Content_Test_Sql_Base 17{ 18 public static function setUpBeforeClass() 19 { 20 if (!extension_loaded('mysql')) { 21 self::$reason = 'No mysql extension'; 22 return; 23 } 24 $config = self::getConfig('CONTENT_SQL_MYSQL_TEST_CONFIG', 25 __DIR__ . '/..'); 26 if ($config && !empty($config['content']['sql']['mysql'])) { 27 self::$db = new Horde_Db_Adapter_Mysql($config['content']['sql']['mysql']); 28 parent::setUpBeforeClass(); 29 } 30 } 31} 32