public function testTemporary() { $table = new CachedTable($this->schema, 'newTable'); $this->assertFalse($table->temporary()); $tempTable = TempTable::create($this->schema, 'blah2', self::$columns); $this->assertTrue($tempTable->temporary()); }
public function createTable($table_name, array $columns, $temporary = false) { if (!$temporary) { return CachedTable::create($this, $table_name, $columns); } else { $table = TempTable::create($this, $table_name, $columns); $this->loadedTables[$table_name] = $table; return $table; } }