/** * Test for the charLength method. * * @return void * * @covers \Joomla\Database\DatabaseQuery::charLength * @since 1.0 */ public function testCharLength() { $this->assertThat($this->instance->charLength('a.title'), $this->equalTo('CHAR_LENGTH(a.title)')); $this->assertThat($this->instance->charLength('a.title', '!=', '0'), $this->equalTo('CHAR_LENGTH(a.title) != 0')); $this->assertThat($this->instance->charLength('a.title', 'IS', 'NOT NULL'), $this->equalTo('CHAR_LENGTH(a.title) IS NOT NULL')); }