Pheasant\Tests\MysqlTestCase::table PHP Method

table() public method

Helper to drop and re-create a table
public table ( $name, $columns )
    public function table($name, $columns)
    {
        $table = $this->pheasant->connection()->table($name);
        if ($table->exists()) {
            $table->drop();
        }
        $table->create($columns);
        $this->assertTableExists($name);
        return $table;
    }