Exemple #1
0
 public function testInsertBySave()
 {
     $st = MODEL("SchemaTest");
     $st->email = "*****@*****.**";
     $st->bl = false;
     $st->save();
     // default values.
     $this->assertEquals("default name", $st->name);
     $this->assertEquals("90000000000", $st->bint);
     $this->assertEquals(30000, $st->sint);
     $this->assertEquals(10.234, $st->ft);
     $this->assertEquals(10.23456, $st->dbl);
     self::$lastStId = $st->id;
 }
Exemple #2
0
 public function testInit()
 {
     Sabel_Db_Config::add("default", Test_DB_TestConfig::getPdoSqliteConfig());
     Test_DB_Test::$db = "SQLITE";
 }
Exemple #3
0
 public function testInit()
 {
     Sabel_Db_Config::add("default", Test_DB_TestConfig::getMysqlConfig());
     Test_DB_Test::$db = "MYSQL";
 }
Exemple #4
0
 public function testInit()
 {
     Sabel_Db_Config::add("default", Test_DB_TestConfig::getOciConfig());
     Test_DB_Test::$db = "ORACLE";
 }
Exemple #5
0
 public function testInit()
 {
     Sabel_Db_Config::add("default", Test_DB_TestConfig::getIbaseConfig());
     Test_DB_Test::$db = "IBASE";
 }
Exemple #6
0
 public function testInit()
 {
     Sabel_Db_Config::add("default", self::$params1);
     Test_DB_Test::$db = "PDO_ORACLE";
 }