コード例 #1
0
 /**
  * @throws \Exception
  */
 public function setUp()
 {
     $this->fixturesRootPath = getFixturesRootPath();
     MySQLHelper::resetMySQLDatabases();
     $this->dbDriver = DbGet::factory(getUnitTestDbConfig('HELPER1'));
     $this->fixtureLoader = new FixtureLoader($this->fixturesRootPath, $this->dbDriver);
 }
コード例 #2
0
ファイル: MySQL_Test.php プロジェクト: rzajac/php-test-helper
 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();
 }
コード例 #3
0
 public static function setUpBeforeClass()
 {
     MySQLHelper::resetMySQLDatabases();
 }