/** * @test */ public function itShouldWriteFormattedWhenGettingFormattedSql() { $query = $this->writer->select()->setTable('user'); $formatted = true; $expected = $this->writer->writeFormatted($query); $this->assertSame($expected, $query->getSql($formatted)); }