public function newRecord() { $r = new Record($this); $r->setColumns($this->schema); return $r; }
/** * @test */ public function setSequenceValue() { $table = new Table(); $schema = ['id' => ['int', 'sequence'], 'name' => ['varchar'], 'created' => ['datetime']]; $record = new Record($table); $record->setColumns($schema); $value = 999; $record->setSequenceValue($value); $this->assertSame($value, $record->id, '-> sets the passed value to the column that has "sequence" option.'); }