constructor of the class
public static construct ( |
||
$config | instance of the config class |
/** * testInit * * @since 2.2.0 * * @param string $dbType * * @dataProvider providerInit */ public function testInit($dbType = null) { /* setup */ $this->_config->set('dbType', $dbType); Db::construct($this->_config); Db::init(); /* actual */ $actual = Db::getDb(); /* compare */ $this->assertInstanceOf('PDO', $actual); }