You are here

function SchemaTestDatabaseConnection::__construct in Schema 8

Same name and namespace in other branches
  1. 7 tests/schema_test/SchemaTestDatabaseConnection.php \SchemaTestDatabaseConnection::__construct()

File

tests/schema_test/SchemaTestDatabaseConnection.php, line 9
Defines SchemaTestDatabaseConnection.

Class

SchemaTestDatabaseConnection
@file Defines SchemaTestDatabaseConnection.

Code

function __construct(array $connection_options = array()) {
  $this->connectionOptions = $connection_options;
  $this
    ->setPrefix(!empty($this->connectionOptions['prefix']) ? $this->connectionOptions['prefix'] : '');
}