/** * Tests the JDatabaseQuery::dateFormat method for an expected exception. * * @return void * * @expectedException RuntimeException * @since 11.3 */ public function testDateFormatException() { $q = new JDatabaseQueryInspector($this->dbo); // Override the internal database for testing. $q->db = new stdClass(); $q->dateFormat(); }