Example #1
0
 protected static function initDAO($sql = '')
 {
     if (null === self::$sqLite) {
         self::initSqlite($sql);
     }
     self::$DAO = new DAO();
     self::$DAO->setConnection(self::$sqLite);
 }
Example #2
0
 /**
  * @depends testNoConnection
  */
 public function testSetConnection(DAO $DAO)
 {
     $DAO->setConnection(self::$sqLite);
     $this->assertInstanceOf('PDO', $DAO->getConnection());
 }