/** * Method to test replace(). * * @return void * * @covers Windwalker\Query\Postgresql\PostgresqlQueryBuilder::replace */ public function testReplace() { $expected = "REPLACE INTO {$this->qn}foo{$this->qn} (a,b) VALUES (c, d, e), (f, g, h)"; $actual = PostgresqlQueryBuilder::replace('foo', array('a', 'b'), array('c, d, e', 'f, g, h')); $this->assertEquals(\SqlFormatter::compress($expected), \SqlFormatter::compress($actual)); }