/** * @test */ public function itShouldBeAbleToWriteCommentInQuery() { $this->query = new Select('user'); $this->query->setComment('This is a comment'); $expected = <<<SQL -- This is a comment SELECT user.* FROM user SQL; $this->assertSame($expected, $this->writer->write($this->query)); }