Esempio n. 1
0
 /**
  * Retrieves an SQL driver instance.
  *
  * @return object Initialized Turba_Driver_sql:: instance connected to the
  *                test database.
  */
 function getDriver()
 {
     if (is_null($this->_driver)) {
         $this->_driver = Turba_Driver::factory('_test_sql', $this->getDriverConfig());
         $this->assertOk($this->_driver);
         $this->assertOk($this->_driver->_init());
     }
     return $this->_driver;
 }