Inheritance: extends PHPUnit_Framework_TestCase, use trait DBTestBase
 function tearDown()
 {
     if (file_exists(MAX_PATH . '/var/' . OX_getHostName() . '.conf.php')) {
         @unlink(MAX_PATH . '/var/' . OX_getHostName() . '.conf.php');
     }
     $_SERVER['HTTP_HOST'] = $this->host;
     // Resume normal service with regards to the configuration file writer...
     unset($GLOBALS['override_TEST_ENVIRONMENT_RUNNING']);
     TestEnv::restoreConfig();
     parent::tearDown();
 }
 /**
  * The constructor method.
  */
 function __construct()
 {
     parent::__construct();
 }
 function setUp()
 {
     parent::setUp();
     $this->assertTrue($this->initDatabase(606, array('banners', 'ad_zone_assoc')));
 }
 function setUp()
 {
     parent::setUp();
     $this->assertTrue($this->initDatabase(604, array('preferences', 'account_preference_assoc')) . 'failed to created version 604 of campaigns of preference table and account_preference_assoc table');
 }
 function setUp()
 {
     parent::setUp();
     $this->initDatabase(108, array('adstats', 'adviews', 'adclicks', 'data_summary_ad_hourly', 'data_intermediate_ad'));
     $this->configPath = MAX_PATH . '/var/config.inc.php';
 }
 /**
  * The constructor method.
  */
 function Test_DB_Upgrade()
 {
     parent::__construct();
     $this->path = MAX_PATH . '/etc/changes/';
     $this->prefix = $GLOBALS['_MAX']['CONF']['table']['prefix'];
 }
 function setUp()
 {
     parent::setUp();
 }
 function setUp()
 {
     parent::setUp();
     $this->assertTrue($this->initDatabase(608, array_values($this->aTables)));
 }
 function setUp()
 {
     parent::setUp();
     $this->assertTrue($this->initDatabase(606, array('preferences')) . 'failed to created version 606 of campaigns of preference table');
 }
 function tearDown()
 {
     Util_File_remove(MAX_PATH . '/var/plugins/config');
     parent::tearDown();
 }