/** * Test for the JDatabaseQuery::__call method. * * @return void * * @since 11.1 */ public function test__call() { $q = new JDatabaseQueryInspector($this->dbo); $this->assertThat($q->e('foo'), $this->equalTo($q->escape('foo')), 'Tests the e alias of escape.'); $this->assertThat($q->q('foo'), $this->equalTo($q->quote('foo')), 'Tests the q alias of quote.'); $this->assertThat($q->qn('foo'), $this->equalTo($q->quoteName('foo')), 'Tests the qn alias of quoteName.'); $this->assertThat($q->foo(), $this->isNull(), 'Tests for an unknown method.'); }