8 * This is the base class for all multi-driver Unit Tests.
9 * By default base class derived tests will offer 'test rounds' for
10 * all well known RedBeanPHP drivers: mysql (MySQL/MariaDB), pgsql (PostgreSQL),
11 * sqlite (SQLite3) and CUBRID (CUBRID).
13 * @file RedUNIT/Base.php
14 * @desc Base class for all drivers that support all database systems.
15 * @author Gabor de Mooij and the RedBeanPHP Community
16 * @license New BSD/GPLv2
18 * (c) G.J.G.T. (Gabor) de Mooij and the RedBeanPHP Community.
19 * This source file is subject to the New BSD/GPLv2 License that is bundled
20 * with this source code in the file license.txt.
22 class Base extends RedUNIT
27 * Contains the list of database drivers as returned by getTargetDrivers().
31 protected static $driverList = array( 'mysql', 'pgsql', 'sqlite', 'CUBRID' );
34 * Adds a driver to the list.
36 * @param string $driverID driver identifier.
38 public static function addToDriverList( $driverID )
40 self::$driverList[] = $driverID;
44 * Returns a list of drivers for which this driver supports
45 * 'test rounds'. This class only supports all base drivers.
47 * @see RedUNIT::getTargetDrivers() for details.
51 public function getTargetDrivers()
53 return self::$driverList;