mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[ticket/11015] Convert connect test to the new syntax.
PHPBB3-11015
This commit is contained in:
parent
aae7a81270
commit
f5c745d2c5
1 changed files with 1 additions and 3 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Reference in a new issue