/** * setUpBeforeClass * * @return void */ public static function setUpBeforeClass() { parent::setUpBeforeClass(); if (static::$dbo) { AbstractDatabaseAdapter::setInstance(new WindwalkerAdapter(static::$dbo)); } }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void */ protected function setUp() { parent::setUp(); $this->instance = new DatabaseHandler(new WindwalkerAdapter(static::$dbo)); }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void */ protected function setUp() { parent::setUp(); $this->db = static::$dbo; $this->connection = $this->db->getConnection(); }