コード例 #1
0
 /**
  * Tests the quoteName method.
  *
  * @return  void
  *
  * @since   11.3
  */
 public function testQuoteName()
 {
     $q = new JDatabaseQueryPostgresql($this->dbo);
     $this->assertEquals('"test"', $q->quoteName('test'));
 }
コード例 #2
0
 /**
  * Tests the quoteName method.
  *
  * @return  void
  *
  * @since   11.3
  */
 public function testQuoteName()
 {
     $q = new JDatabaseQueryPostgresql($this->dbo);
     $this->assertThat($q->quoteName('test'), $this->equalTo('"test"'), 'The quoteName method should be a proxy for the JDatabase::escape method.');
 }