コード例 #1
0
 /**
  * Tests the quoteName method.
  *
  * @param   boolean  $text      The value to be quoted.
  * @param   boolean  $escape    True to escape the string, false to leave it unchanged.
  * @param   string   $expected  The expected result.
  *
  * @return  void
  *
  * @since   11.3
  * @dataProvider  dataTestQuote
  */
 public function testQuote($text, $escape, $expected)
 {
     $q = new JDatabaseQueryPostgresql($this->dbo);
     $this->assertEquals($expected, $q->quote($text, $escape));
 }