Ejemplo n.º 1
0
 public function testValidatorsSqlite()
 {
     require 'unit-tests/config.db.php';
     if (empty($configSqlite)) {
         $this->markTestSkipped("Skipped");
         return;
     }
     $di = $this->_getDI();
     $di->set('db', function () {
         require 'unit-tests/config.db.php';
         $conn = new Phalcon\Db\Adapter\Pdo\Sqlite($configSqlite);
         $conn->getInternalHandler()->sqliteCreateFunction('now', 'sqlite_now', 0);
         return $conn;
     }, true);
     $this->_testValidatorsNormal($di);
     $this->_testValidatorsRenamed($di);
 }