protected function setUp() { parent::setUp(); $this->connection->exec("ALTER TABLE test AUTO_INCREMENT = 1"); $this->connection->exec("ALTER TABLE test2 AUTO_INCREMENT = 1"); for ($i = 0; $i < self::ROWCOUNT; $i++) { $c_int = $i % self::DENOMINATOR; $c_varchar = "varchar " . $c_int; $c_unique = "unique " . $i; $this->connection->exec("INSERT INTO test (c_varchar, c_int, c_unique)\n VALUES ('{$c_varchar}', {$c_int}, '{$c_unique}')"); $this->connection->exec("INSERT INTO test2 (c_varchar, c_int, c_unique)\n VALUES ('{$c_varchar}', {$c_int}, '{$c_unique}')"); } }
protected function setUp() { parent::setUp(); $this->connection2 = clone $this->connection; $this->connection2->setName("Conn 2"); }
function setUp() { parent::setUp(); $this->persistenceDriver = new DbDriver($this->connection); Entity::setDefaultPersistenceDriver($this->persistenceDriver); }