PHP Class RedUNIT\Base

This is the base class for all multi-driver Unit Tests. By default base class derived tests will offer 'test rounds' for all well known RedBeanPHP drivers: mysql (MySQL/MariaDB), pgsql (PostgreSQL), sqlite (SQLite3) and CUBRID (CUBRID).
Author: Gabor de Mooij and the RedBeanPHP Community
Inheritance: extends RedUNIT
Show file Open project: gabordemooij/redbean Class Usage Examples

Protected Properties

Property Type Description
$driverList array Contains the list of database drivers as returned by getTargetDrivers().

Public Methods

Method Description
addToDriverList ( string $driverID ) Adds a driver to the list.
getTargetDrivers ( ) : array Returns a list of drivers for which this driver supports 'test rounds'. This class only supports all base drivers.

Method Details

addToDriverList() public static method

Adds a driver to the list.
public static addToDriverList ( string $driverID )
$driverID string driver identifier.

getTargetDrivers() public method

Returns a list of drivers for which this driver supports 'test rounds'. This class only supports all base drivers.
See also: RedUNIT::getTargetDrivers() for details.
public getTargetDrivers ( ) : array
return array

Property Details

$driverList protected static property

Contains the list of database drivers as returned by getTargetDrivers().
protected static array $driverList
return array