コード例 #1
0
ファイル: QueryTest.php プロジェクト: jbanety/database
 /**
  * Test for the \Joomla\Database\DatabaseQuery::__call method.
  *
  * @return  void
  *
  * @covers  \Joomla\Database\DatabaseQuery::__call
  * @since   1.0
  */
 public function test__call()
 {
     $this->assertThat($this->instance->e('foo'), $this->equalTo($this->instance->escape('foo')), 'Tests the e alias of escape.');
     $this->assertThat($this->instance->q('foo'), $this->equalTo($this->instance->quote('foo')), 'Tests the q alias of quote.');
     $this->assertThat($this->instance->qn('foo'), $this->equalTo($this->instance->quoteName('foo')), 'Tests the qn alias of quoteName.');
     $this->assertThat($this->instance->foo(), $this->isNull(), 'Tests for an unknown method.');
 }