/** * @throws \Exception */ public function setUp() { $this->fixturesRootPath = getFixturesRootPath(); MySQLHelper::resetMySQLDatabases(); $this->dbDriver = DbGet::factory(getUnitTestDbConfig('HELPER1')); $this->fixtureLoader = new FixtureLoader($this->fixturesRootPath, $this->dbDriver); }
public function setUp() { _WhatMysqliReport::$throw = false; // NOTE: THIS IS RESETTING DATABASE TO KNOWN STATE BEFORE EACH TEST! MySQLHelper::resetMySQLDatabases(); // Connect to default database. $this->driver = new MySQL(); $this->driver->dbSetup(getUnitTestDbConfig('HELPER1'))->dbConnect(); }
public static function setUpBeforeClass() { MySQLHelper::resetMySQLDatabases(); }