示例#1
0
 /**
  * Tests the JDatabaseMySQLi escape method.
  *
  * @param   string   $text   The string to be escaped.
  * @param   boolean  $extra  Optional parameter to provide extra escaping.
  *
  * @return  void
  *
  * @since   11.4
  * @dataProvider  dataTestEscape
  */
 public function testEscape($text, $extra, $result)
 {
     $this->assertThat($this->object->escape($text, $extra), $this->equalTo($result), 'The string was not escaped properly');
 }