- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/SanitizeTextField.php
r38944 r42343 22 22 "one is <\n two", 23 23 array( 24 'oneline' => 'one is < two',24 'oneline' => 'one is < two', 25 25 'multiline' => "one is <\n two", 26 26 ), … … 29 29 "foo <div\n> bar", 30 30 array( 31 'oneline' => 'foo bar',32 'multiline' => "foo bar",31 'oneline' => 'foo bar', 32 'multiline' => 'foo bar', 33 33 ), 34 34 ), … … 36 36 "foo <\ndiv\n> bar", 37 37 array( 38 'oneline' => 'foo < div > bar',38 'oneline' => 'foo < div > bar', 39 39 'multiline' => "foo <\ndiv\n> bar", 40 40 ), … … 51 51 'we trim extra internal whitespace only in single line texts', 52 52 array( 53 'oneline' => 'we trim extra internal whitespace only in single line texts',53 'oneline' => 'we trim extra internal whitespace only in single line texts', 54 54 'multiline' => 'we trim extra internal whitespace only in single line texts', 55 55 ), … … 58 58 "tabs \tget removed in single line texts", 59 59 array( 60 'oneline' => 'tabs get removed in single line texts',60 'oneline' => 'tabs get removed in single line texts', 61 61 'multiline' => "tabs \tget removed in single line texts", 62 62 ), … … 65 65 "newlines are allowed only\n in multiline texts", 66 66 array( 67 'oneline' => 'newlines are allowed only in multiline texts',67 'oneline' => 'newlines are allowed only in multiline texts', 68 68 'multiline' => "newlines are allowed only\n in multiline texts", 69 69 ), … … 77 77 B removing %a 78 78 b octets even when %a B they are obscured by whitespace', 79 array (80 'oneline' => 'We don\'t need to wory about %A B removing %a b octets even when %a B they are obscured by whitespace',79 array( 80 'oneline' => 'We don\'t need to wory about %A B removing %a b octets even when %a B they are obscured by whitespace', 81 81 'multiline' => "We don't need to wory about %A\n B removing %a\n b octets even when %a B they are obscured by whitespace", 82 82 ), … … 103 103 function test_sanitize_text_field( $string, $expected ) { 104 104 if ( is_array( $expected ) ) { 105 $expected_oneline = $expected['oneline'];105 $expected_oneline = $expected['oneline']; 106 106 $expected_multiline = $expected['multiline']; 107 107 } else {
Note: See TracChangeset
for help on using the changeset viewer.