@@ -24,15 +24,31 @@ public function test_convert_invalid_entities( $input, $expected ) {
24
24
*/
25
25
public function data_convert_invalid_entities_strings () {
26
26
return array (
27
+ 'empty string ' => array (
28
+ 'input ' => '' ,
29
+ 'expected ' => '' ,
30
+ ),
27
31
'replaces windows1252 entities with unicode ones ' => array (
28
32
'input ' => '‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ ' ,
29
33
'expected ' => '‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ ' ,
30
34
),
31
35
// @ticket 20503
32
- 'replaces latin letter z with caron ' => array (
36
+ 'replaces latin letter z with caron ' => array (
33
37
'input ' => 'Žž ' ,
34
38
'expected ' => 'Žž ' ,
35
39
),
40
+ 'string without entity is returned unchanged ' => array (
41
+ 'input ' => 'Hello! This is just text. ' ,
42
+ 'expected ' => 'Hello! This is just text. ' ,
43
+ ),
44
+ 'string with unlisted entity is returned unchanged ' => array (
45
+ 'input ' => 'English pound: £. ' ,
46
+ 'expected ' => 'English pound: £. ' ,
47
+ ),
48
+ 'string with entity in thousand range (not win 1252) is returned unchanged ' => array (
49
+ 'input ' => 'Їԣ ' ,
50
+ 'expected ' => 'Їԣ ' ,
51
+ ),
36
52
);
37
53
}
38
54
0 commit comments