The branch, master has been updated via d9f91b4f5d876a307d516715883505928888a9ed (commit) from 42d704eadb906da01850c02e15e45e1c0246a43e (commit)
- Log ----------------------------------------------------------------- commit d9f91b4f5d876a307d516715883505928888a9ed Author: Michal Čihař mcihar@suse.cz Date: Mon Jul 25 14:27:07 2011 +0200
Testcase for escaping
-----------------------------------------------------------------------
Summary of changes: test/libraries/PMA_sanitize_test.php | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/test/libraries/PMA_sanitize_test.php b/test/libraries/PMA_sanitize_test.php index 5334162..e44d4f8 100644 --- a/test/libraries/PMA_sanitize_test.php +++ b/test/libraries/PMA_sanitize_test.php @@ -62,5 +62,11 @@ class PMA_sanitize_test extends PHPUnit_Framework_TestCase $this->assertEquals('<strong>strong</strong>', PMA_sanitize('[b]strong[/b]')); } + + public function testEscape() + { + $this->assertEquals('<strong>strong</strong>', + PMA_sanitize('[strong]strong[/strong]', true)); + } } ?>
hooks/post-receive