Comments for testBackquote and new testBackquoteForbidenWords.

This commit is contained in:
Zarubin Stas 2011-07-06 13:12:34 +03:00
parent 2e93b81172
commit e093653e46

View File

@ -90,8 +90,19 @@ class PMA_quoting_slashing_test extends PHPUnit_Framework_TestCase
* @dataProvider backquoteDataProvider
*/
public function testBackquote($a, $b) {
// Test bypass quoting (used by dump functions)
$this->assertEquals($a, PMA_backquote($a, false));
// Test backquote
$this->assertEquals($b, PMA_backquote($a));
}
public function testBackquoteForbidenWords() {
global $PMA_SQPdata_forbidden_word;
foreach ($PMA_SQPdata_forbidden_word as $forbidden){
$this->assertEquals("`" . $forbidden . "`", PMA_backquote($forbidden, false));
}
}
}
?>