public static function getInsert() { return QueryBuilder\insert(self::TABLE_NAME, ['id' => 1, 'name' => 'foo']); }
/** * @expectedException \InvalidArgumentException * @expectedExceptionMessage The field "x" is not found in the row. */ public function testErrorOnWrongRowSequenceInPipe() { $insert = QueryBuilder\insert('user')->pipe(['x' => 1])->pipe(['y' => 2]); $insert->compile(Mock::getMysqliDriver($this)); }