/** * Test for the charLength method. * * @return void * * @since 11.1 */ public function testCharLength() { $q = new JDatabaseQueryInspector($this->dbo); $this->assertThat($q->charLength('a.title'), $this->equalTo('CHAR_LENGTH(a.title)')); $this->assertThat($q->charLength('a.title', '!=', '0'), $this->equalTo('CHAR_LENGTH(a.title) != 0')); $this->assertThat($q->charLength('a.title', 'IS', 'NOT NULL'), $this->equalTo('CHAR_LENGTH(a.title) IS NOT NULL')); }