Esempio n. 1
0
 /**
  * setUpBeforeClass
  *
  * @return  void
  */
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     if (static::$dbo) {
         DatabaseAdapter::setInstance(new WindwalkerAdapter(static::$dbo));
     }
 }
Esempio n. 2
0
 /**
  * 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();
 }
Esempio n. 3
0
 /**
  * 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));
 }