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