mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 15:57:45 +02:00
[ticket/11015] Convert connect test to the new syntax.
PHPBB3-11015
This commit is contained in:
@@ -22,9 +22,7 @@ class phpbb_dbal_connect_test extends phpbb_database_test_case
|
|||||||
|
|
||||||
$config = $this->get_database_config();
|
$config = $this->get_database_config();
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../phpBB/includes/db/' . $config['dbms'] . '.php';
|
$db = new $config['dbms']();
|
||||||
$dbal = 'dbal_' . $config['dbms'];
|
|
||||||
$db = new $dbal();
|
|
||||||
|
|
||||||
// Failure to connect results in a trigger_error call in dbal.
|
// Failure to connect results in a trigger_error call in dbal.
|
||||||
// phpunit converts triggered errors to exceptions.
|
// phpunit converts triggered errors to exceptions.
|
||||||
|
Reference in New Issue
Block a user