mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 19:38:26 +00:00
sanitize test added, closes #3488
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6183 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
e6bd38d7d1
commit
ac4896fabd
1 changed files with 4 additions and 0 deletions
|
@ -107,6 +107,10 @@ class SanitizeTest extends CakeTestCase {
|
||||||
$result = Sanitize::clean($array, array('odd_spaces' => false, 'escape' => false, 'connection' => 'test_suite'));
|
$result = Sanitize::clean($array, array('odd_spaces' => false, 'escape' => false, 'connection' => 'test_suite'));
|
||||||
$this->assertEqual($result, $expected);
|
$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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
Reference in a new issue