Make WordPress Core

Ticket #16330: 16330.tests.php

File 16330.tests.php, 805 bytes (added by mattheu, 12 years ago)

Update SanitizeFileName test

Line 
1diff --git tests/phpunit/tests/formatting/SanitizeFileName.php tests/phpunit/tests/formatting/SanitizeFileName.php
2index e4f0824..7cda0fd 100644
3--- tests/phpunit/tests/formatting/SanitizeFileName.php
4+++ tests/phpunit/tests/formatting/SanitizeFileName.php
5@@ -11,7 +11,7 @@ class Tests_Formatting_SanitizeFileName extends WP_UnitTestCase {
6 }
7
8 function test_removes_special_chars() {
9- $special_chars = array("?", "[", "]", "/", "\\", "=", "<", ">", ":", ";", ",", "'", "\"", "&", "$", "#", "*", "(", ")", "|", "~", "`", "!", "{", "}", chr(0));
10+ $special_chars = array("?", "[", "]", "/", "\\", "=", "<", ">", ":", ";", ",", "'", "\"", "&", "$", "#", "*", "(", ")", "|", "~", "`", "!", "{", "}", "%", "+", chr(0));
11 $string = 'test';
12 foreach ( $special_chars as $char )
13 $string .= $char;