示例#1
0
 protected static function initDAO($sql = '')
 {
     if (null === self::$sqLite) {
         self::initSqlite($sql);
     }
     self::$DAO = new DAO();
     self::$DAO->setConnection(self::$sqLite);
 }
示例#2
0
 /**
  * @expectedException PDOException
  */
 public function testThrowPDOExceptionOnMalformedQueryString()
 {
     $data = array(':propertyType' => 'username');
     self::$DAO->insertRecord($data);
 }