From ac4896fabdfe6a469613dd3911f300bdfef14eb8 Mon Sep 17 00:00:00 2001 From: gwoo Date: Fri, 21 Dec 2007 19:42:08 +0000 Subject: [PATCH] sanitize test added, closes #3488 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6183 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/cases/libs/sanitize.test.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cake/tests/cases/libs/sanitize.test.php b/cake/tests/cases/libs/sanitize.test.php index 796a4d499..4508254b5 100644 --- a/cake/tests/cases/libs/sanitize.test.php +++ b/cake/tests/cases/libs/sanitize.test.php @@ -107,6 +107,10 @@ class SanitizeTest extends CakeTestCase { $result = Sanitize::clean($array, array('odd_spaces' => false, 'escape' => false, 'connection' => 'test_suite')); $this->assertEqual($result, $expected); + $array = array(array('\\$', array('key' => 'test & "quote" \'other\' ;.$ \\$ symbol.' . "\r" . 'another line'))); + $expected = array(array('$', array('key' => 'test & "quote" \'other\' ;.$ $ symbol.another line'))); + $result = Sanitize::clean($array, array('encode' => false, 'escape' => false)); + $this->assertEqual($result, $expected); } } ?> \ No newline at end of file