Ejemplo n.º 1
0
 /**
  * Sets up the fixture.
  *
  * This method is called before a test is executed.
  *
  * @return  void
  *
  * @since   1.0
  */
 protected function setUp()
 {
     parent::setUp();
     $this->dbo = Mock\Driver::create($this);
     $this->instance = new Mock\Query($this->dbo);
 }
Ejemplo 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->dbo = Mock\Driver::create($this);
     // Mock the escape method to ensure the API is calling the DBO's escape method.
     TestHelper::assignMockCallbacks($this->dbo, $this, array('escape' => array($this, 'mockEscape')));
 }
 /**
  * Setup the tests.
  *
  * @return  void
  *
  * @since   1.0
  */
 protected function setUp()
 {
     parent::setUp();
     $this->instance = new DatabaseModel(DatabaseMock\Driver::create($this));
 }