table_exists() public method

Check if a table exists
public table_exists ( string $tbl, boolean $reload_tables = false ) : boolean
$tbl string the table name
$reload_tables boolean reload table or not
return boolean
 /**
  * test to ensure table does exist
  */
 public function test_ensure_table_does_exist()
 {
     //first make sure the table does not exist
     $users = $this->adapter->has_table('users', true);
     $this->assertEquals(false, $users);
     $t1 = new Ruckusing_Adapter_PgSQL_TableDefinition($this->adapter, "users");
     $t1->column("email", "string", array('limit' => 20));
     $sql = $t1->finish();
     $users = $this->adapter->table_exists('users', true);
     $this->assertEquals(true, $users);
     $this->drop_table('users');
 }