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; }
public function testInit() { Sabel_Db_Config::add("default", Test_DB_TestConfig::getPdoSqliteConfig()); Test_DB_Test::$db = "SQLITE"; }
public function testInit() { Sabel_Db_Config::add("default", Test_DB_TestConfig::getMysqlConfig()); Test_DB_Test::$db = "MYSQL"; }
public function testInit() { Sabel_Db_Config::add("default", Test_DB_TestConfig::getOciConfig()); Test_DB_Test::$db = "ORACLE"; }
public function testInit() { Sabel_Db_Config::add("default", Test_DB_TestConfig::getIbaseConfig()); Test_DB_Test::$db = "IBASE"; }
public function testInit() { Sabel_Db_Config::add("default", self::$params1); Test_DB_Test::$db = "PDO_ORACLE"; }