/** * Tests the JDatabaseQuery::concatenate method. * * @return void * * @since 11.3 */ public function testConcatenate() { $q = new JDatabaseQueryInspector($this->dbo); $this->assertThat($q->concatenate(array('foo', 'bar')), $this->equalTo('CONCATENATE(foo || bar)'), 'Tests without separator.'); $this->assertThat($q->concatenate(array('foo', 'bar'), ' and '), $this->equalTo("CONCATENATE(foo || '_ and _' || bar)"), 'Tests without separator.'); }