コード例 #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   1.0
  * @dataProvider  dataTestQuote
  */
 public function testQuote($text, $escape, $expected)
 {
     $q = new PostgresqlQuery($this->dbo);
     $this->assertThat($q->quote('test'), $this->equalTo("'_test_'"), 'The quote method should be a proxy for the DatabaseDriver::quote method.');
 }