Exemplo n.º 1
0
 /**
  * Disconnect from the database.
  */
 protected function _disconnect()
 {
     // run 'teardown' sql from the fixture
     if ($this->_fixtures) {
         $this->_fixtures->teardown();
     }
     if (Mad_Model_Base::isConnected()) {
         Mad_Model_Base::removeConnection();
     }
     $this->_conn = null;
 }
Exemplo n.º 2
0
 public function testGetRecords()
 {
     $fixtures = new Mad_Test_Fixture_Collection($this->_conn, 'unit_tests_more');
     $this->assertEquals(11, count($fixtures->getRecords()));
 }