/** * Test for the charLength method. * * @return void * * @covers JDatabaseQuery::charLength * @since 11.1 */ 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') ); }