Example #1
0
 public function testRemoveNonExistingTable()
 {
     $this->setExpectedException('\\TextDb\\Exception\\InvalidTableException');
     $this->tdb->createDatabase($this->tmpFolder, $this->dbName);
     $this->tdb->removeTable("invalid_table");
     $this->tdb->removeDatabase();
 }
Example #2
0
 protected function tearDown()
 {
     $this->tdb->tdb($this->tmpFolder, $this->dbName);
     $this->tdb->removeDatabase();
     parent::tearDown();
 }