private function testMDB2Instantiation() { // Test new instance factory for a portable MDB2 driver $dbDriver = \PASL\DB::factory($this->strMyDsn, false, true); $this->assertIsA($dbDriver, 'MDB2_Driver_common'); $this->assertIsA($dbDriver, 'MDB2_Driver_mysql'); // Test new instance factory for a portable MDB2 driver $dbDriver = PASL_DB::singleton($this->strMyDsn, false, true); $this->assertIsA($dbDriver, 'MDB2_Driver_common'); $this->assertIsA($dbDriver, 'MDB2_Driver_mysql'); }
public function init($dsn) { ORM::registerDB('pasl_rbac', DB::factory($dsn)); }