Example #1
0
 public function testClearTables()
 {
     $this->assertCount(0, self::readAttribute($this->rm, 'tables'));
     $this->rm->getTable('user');
     $this->assertCount(1, self::readAttribute($this->rm, 'tables'));
     $this->rm->getTable('author');
     $this->assertCount(2, self::readAttribute($this->rm, 'tables'));
     $this->rm->getTable('author');
     $this->assertCount(2, self::readAttribute($this->rm, 'tables'));
     $this->rm->clearTables();
     $this->assertCount(0, self::readAttribute($this->rm, 'tables'));
 }
Example #2
0
 protected function setUp()
 {
     parent::setUp();
     self::$rm->clearTables();
 }
 protected function tearDown()
 {
     parent::tearDown();
     $this->rm->clearTables();
 }