/** * @test */ public function itCanAcceptATableAndValuesForUpdate() { $table = 'user'; $values = ['id' => 1, 'role' => 'super-admin']; $expected = <<<QUERY UPDATE user SET user.id = :v1, user.role = :v2 QUERY; $update = $this->writer->update($table, $values); $this->assertSame($expected, $this->writer->writeFormatted($update)); }