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