/** * Tests the \Joomla\Database\DatabaseQuery::dateFormat method for an expected exception. * * @return void * * @covers \Joomla\Database\DatabaseQuery::dateFormat * @expectedException \RuntimeException * @since 1.0 */ public function testDateFormatException() { // Override the internal database for testing. TestHelper::setValue($this->instance, 'db', new \stdClass()); $this->instance->dateFormat(); }