Пример #1
0
 public function testGetTableList()
 {
     $this->assertEquals([], $this->tdb->getTableList());
     $this->tdb->createTable("test", [["id", "id"], ["name", "string", 50]]);
     $this->assertEquals([$this->dbName . "_test"], $this->tdb->getTableList());
     $this->tdb->createTable("test2", [["id", "id"], ["name", "string", 50]]);
     $this->assertEquals([$this->dbName . "_test", $this->dbName . "_test2"], $this->tdb->getTableList());
     $this->tdb->removeTable("test");
     $this->assertEquals(true, in_array($this->dbName . "_test2", $this->tdb->getTableList()));
 }