public function test_formats_delete_queries() { $sql = "update table set column1=value, column2=value2 where some_column=some_value"; $params = []; $this->decorate($sql, $params); $this->assertEquals('UPDATE table SET column1=value, column2=value2 WHERE some_column=some_value', $this->formatter->format($sql, $params)); }
/** * Logs a SQL statement somewhere. * * @param string $sql The SQL to be executed. * @param array|null $params The SQL parameters. * @param array|null $types The SQL parameter types. * * @return void */ public function startQuery($sql, array $params = null, array $types = null) { $this->start = microtime(true); $this->query = $this->formatter->format($sql, $params); }