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