| 1 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
require_once dirname(dirname(__FILE__)) . '/XML_Feed_Parser_TestCase.php';
|
|
|
4 |
|
|
|
5 |
class encoding_TestCase extends XML_Feed_Parser_Converted_TestCase {
|
|
|
6 |
|
|
|
7 |
function test_csucs4_0() {
|
|
|
8 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/csucs4.xml');
|
|
|
9 |
|
|
|
10 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
11 |
|
|
|
12 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
13 |
}
|
|
|
14 |
|
|
|
15 |
function test_csunicode_0() {
|
|
|
16 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/csunicode.xml');
|
|
|
17 |
|
|
|
18 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
19 |
|
|
|
20 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
21 |
}
|
|
|
22 |
|
|
|
23 |
function test_encoding_attribute_crash_0() {
|
|
|
24 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/encoding_attribute_crash.xml');
|
|
|
25 |
|
|
|
26 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
27 |
|
|
|
28 |
$this->markTestIncomplete("Not yet implemented");
|
|
|
29 |
}
|
|
|
30 |
|
|
|
31 |
function test_encoding_attribute_crash_2_0() {
|
|
|
32 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/encoding_attribute_crash_2.xml');
|
|
|
33 |
|
|
|
34 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
35 |
|
|
|
36 |
$this->markTestIncomplete("Not yet implemented");
|
|
|
37 |
}
|
|
|
38 |
|
|
|
39 |
function test_euc_kr_attribute_1() {
|
|
|
40 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/euc-kr-attribute.xml');
|
|
|
41 |
|
|
|
42 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
43 |
|
|
|
44 |
$this->assertEquals('<img alt="\ub144" />', $feed->getEntryByOffset(0)->description);
|
|
|
45 |
}
|
|
|
46 |
|
|
|
47 |
function test_euc_kr_item_1() {
|
|
|
48 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/euc-kr-item.xml');
|
|
|
49 |
|
|
|
50 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
51 |
|
|
|
52 |
$this->assertEquals('\ub144', $feed->getEntryByOffset(0)->description);
|
|
|
53 |
}
|
|
|
54 |
|
|
|
55 |
function test_euc_kr_1() {
|
|
|
56 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/euc-kr.xml');
|
|
|
57 |
|
|
|
58 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
59 |
|
|
|
60 |
$this->assertEquals('\ub144', $feed->title);
|
|
|
61 |
}
|
|
|
62 |
|
|
|
63 |
function test_http_text_xml_charset_2_1() {
|
|
|
64 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/http_text_xml_charset_2.xml');
|
|
|
65 |
|
|
|
66 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
67 |
|
|
|
68 |
$this->assertEquals('This is a \xa3\u201ctest.\u201d', $feed->getEntryByOffset(0)->description);
|
|
|
69 |
}
|
|
|
70 |
|
|
|
71 |
function test_http_text_xml_charset_overrides_encoding_2_1() {
|
|
|
72 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/http_text_xml_charset_overrides_encoding_2.xml');
|
|
|
73 |
|
|
|
74 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
75 |
|
|
|
76 |
$this->assertEquals('This is a \xa3\u201ctest.\u201d', $feed->getEntryByOffset(0)->description);
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
function test_iso_10646_ucs_2_0() {
|
|
|
80 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/iso-10646-ucs-2.xml');
|
|
|
81 |
|
|
|
82 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
83 |
|
|
|
84 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
85 |
}
|
|
|
86 |
|
|
|
87 |
function test_iso_10646_ucs_4_0() {
|
|
|
88 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/iso-10646-ucs-4.xml');
|
|
|
89 |
|
|
|
90 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
91 |
|
|
|
92 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
93 |
}
|
|
|
94 |
|
|
|
95 |
function test_u16_0() {
|
|
|
96 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/u16.xml');
|
|
|
97 |
|
|
|
98 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
99 |
|
|
|
100 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
101 |
}
|
|
|
102 |
|
|
|
103 |
function test_ucs_2_0() {
|
|
|
104 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/ucs-2.xml');
|
|
|
105 |
|
|
|
106 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
107 |
|
|
|
108 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
109 |
}
|
|
|
110 |
|
|
|
111 |
function test_ucs_4_0() {
|
|
|
112 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/ucs-4.xml');
|
|
|
113 |
|
|
|
114 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
115 |
|
|
|
116 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
117 |
}
|
|
|
118 |
|
|
|
119 |
function test_utf_16be_autodetect_0() {
|
|
|
120 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-16be-autodetect.xml');
|
|
|
121 |
|
|
|
122 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
123 |
|
|
|
124 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
125 |
}
|
|
|
126 |
|
|
|
127 |
function test_utf_16be_bom_0() {
|
|
|
128 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-16be-bom.xml');
|
|
|
129 |
|
|
|
130 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
131 |
|
|
|
132 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
133 |
}
|
|
|
134 |
|
|
|
135 |
function test_utf_16be_0() {
|
|
|
136 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-16be.xml');
|
|
|
137 |
|
|
|
138 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
139 |
|
|
|
140 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
141 |
}
|
|
|
142 |
|
|
|
143 |
function test_utf_16le_autodetect_0() {
|
|
|
144 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-16le-autodetect.xml');
|
|
|
145 |
|
|
|
146 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
147 |
|
|
|
148 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
149 |
}
|
|
|
150 |
|
|
|
151 |
function test_utf_16le_bom_0() {
|
|
|
152 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-16le-bom.xml');
|
|
|
153 |
|
|
|
154 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
155 |
|
|
|
156 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
157 |
}
|
|
|
158 |
|
|
|
159 |
function test_utf_16le_0() {
|
|
|
160 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-16le.xml');
|
|
|
161 |
|
|
|
162 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
163 |
|
|
|
164 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
165 |
}
|
|
|
166 |
|
|
|
167 |
function test_utf_32be_autodetect_0() {
|
|
|
168 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-32be-autodetect.xml');
|
|
|
169 |
|
|
|
170 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
171 |
|
|
|
172 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
173 |
}
|
|
|
174 |
|
|
|
175 |
function test_utf_32be_bom_0() {
|
|
|
176 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-32be-bom.xml');
|
|
|
177 |
|
|
|
178 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
179 |
|
|
|
180 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
181 |
}
|
|
|
182 |
|
|
|
183 |
function test_utf_32be_0() {
|
|
|
184 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-32be.xml');
|
|
|
185 |
|
|
|
186 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
187 |
|
|
|
188 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
189 |
}
|
|
|
190 |
|
|
|
191 |
function test_utf_32le_autodetect_0() {
|
|
|
192 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-32le-autodetect.xml');
|
|
|
193 |
|
|
|
194 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
195 |
|
|
|
196 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
197 |
}
|
|
|
198 |
|
|
|
199 |
function test_utf_32le_bom_0() {
|
|
|
200 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-32le-bom.xml');
|
|
|
201 |
|
|
|
202 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
203 |
|
|
|
204 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
205 |
}
|
|
|
206 |
|
|
|
207 |
function test_utf_32le_0() {
|
|
|
208 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-32le.xml');
|
|
|
209 |
|
|
|
210 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
211 |
|
|
|
212 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
213 |
}
|
|
|
214 |
|
|
|
215 |
function test_utf16_0() {
|
|
|
216 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf16.xml');
|
|
|
217 |
|
|
|
218 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
219 |
|
|
|
220 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
221 |
}
|
|
|
222 |
|
|
|
223 |
function test_utf_16_0() {
|
|
|
224 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf_16.xml');
|
|
|
225 |
|
|
|
226 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
227 |
|
|
|
228 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
229 |
}
|
|
|
230 |
|
|
|
231 |
function test_utf_32_0() {
|
|
|
232 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf_32.xml');
|
|
|
233 |
|
|
|
234 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
235 |
|
|
|
236 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
237 |
}
|
|
|
238 |
|
|
|
239 |
function test_x80_437_1() {
|
|
|
240 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_437.xml');
|
|
|
241 |
|
|
|
242 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
243 |
|
|
|
244 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
245 |
}
|
|
|
246 |
|
|
|
247 |
function test_x80_850_1() {
|
|
|
248 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_850.xml');
|
|
|
249 |
|
|
|
250 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
251 |
|
|
|
252 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
253 |
}
|
|
|
254 |
|
|
|
255 |
function test_x80_852_1() {
|
|
|
256 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_852.xml');
|
|
|
257 |
|
|
|
258 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
259 |
|
|
|
260 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
261 |
}
|
|
|
262 |
|
|
|
263 |
function test_x80_855_1() {
|
|
|
264 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_855.xml');
|
|
|
265 |
|
|
|
266 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
267 |
|
|
|
268 |
$this->assertEquals('\u0452', $feed->title);
|
|
|
269 |
}
|
|
|
270 |
|
|
|
271 |
function test_x80_857_1() {
|
|
|
272 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_857.xml');
|
|
|
273 |
|
|
|
274 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
275 |
|
|
|
276 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
277 |
}
|
|
|
278 |
|
|
|
279 |
function test_x80_860_1() {
|
|
|
280 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_860.xml');
|
|
|
281 |
|
|
|
282 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
283 |
|
|
|
284 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
285 |
}
|
|
|
286 |
|
|
|
287 |
function test_x80_861_1() {
|
|
|
288 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_861.xml');
|
|
|
289 |
|
|
|
290 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
291 |
|
|
|
292 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
293 |
}
|
|
|
294 |
|
|
|
295 |
function test_x80_862_1() {
|
|
|
296 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_862.xml');
|
|
|
297 |
|
|
|
298 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
299 |
|
|
|
300 |
$this->assertEquals('\u05d0', $feed->title);
|
|
|
301 |
}
|
|
|
302 |
|
|
|
303 |
function test_x80_863_1() {
|
|
|
304 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_863.xml');
|
|
|
305 |
|
|
|
306 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
307 |
|
|
|
308 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
309 |
}
|
|
|
310 |
|
|
|
311 |
function test_x80_865_1() {
|
|
|
312 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_865.xml');
|
|
|
313 |
|
|
|
314 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
315 |
|
|
|
316 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
317 |
}
|
|
|
318 |
|
|
|
319 |
function test_x80_866_1() {
|
|
|
320 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_866.xml');
|
|
|
321 |
|
|
|
322 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
323 |
|
|
|
324 |
$this->assertEquals('\u0410', $feed->title);
|
|
|
325 |
}
|
|
|
326 |
|
|
|
327 |
function test_x80_cp037_0() {
|
|
|
328 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp037.xml');
|
|
|
329 |
|
|
|
330 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
331 |
|
|
|
332 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
333 |
}
|
|
|
334 |
|
|
|
335 |
function test_x80_cp1125_1() {
|
|
|
336 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1125.xml');
|
|
|
337 |
|
|
|
338 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
339 |
|
|
|
340 |
$this->assertEquals('\u0410', $feed->title);
|
|
|
341 |
}
|
|
|
342 |
|
|
|
343 |
function test_x80_cp1250_1() {
|
|
|
344 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1250.xml');
|
|
|
345 |
|
|
|
346 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
347 |
|
|
|
348 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
349 |
}
|
|
|
350 |
|
|
|
351 |
function test_x80_cp1251_1() {
|
|
|
352 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1251.xml');
|
|
|
353 |
|
|
|
354 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
355 |
|
|
|
356 |
$this->assertEquals('\u0402', $feed->title);
|
|
|
357 |
}
|
|
|
358 |
|
|
|
359 |
function test_x80_cp1252_1() {
|
|
|
360 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1252.xml');
|
|
|
361 |
|
|
|
362 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
363 |
|
|
|
364 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
365 |
}
|
|
|
366 |
|
|
|
367 |
function test_x80_cp1253_1() {
|
|
|
368 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1253.xml');
|
|
|
369 |
|
|
|
370 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
371 |
|
|
|
372 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
373 |
}
|
|
|
374 |
|
|
|
375 |
function test_x80_cp1254_1() {
|
|
|
376 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1254.xml');
|
|
|
377 |
|
|
|
378 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
379 |
|
|
|
380 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
381 |
}
|
|
|
382 |
|
|
|
383 |
function test_x80_cp1255_1() {
|
|
|
384 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1255.xml');
|
|
|
385 |
|
|
|
386 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
387 |
|
|
|
388 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
389 |
}
|
|
|
390 |
|
|
|
391 |
function test_x80_cp1256_1() {
|
|
|
392 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1256.xml');
|
|
|
393 |
|
|
|
394 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
395 |
|
|
|
396 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
397 |
}
|
|
|
398 |
|
|
|
399 |
function test_x80_cp1257_1() {
|
|
|
400 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1257.xml');
|
|
|
401 |
|
|
|
402 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
403 |
|
|
|
404 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
405 |
}
|
|
|
406 |
|
|
|
407 |
function test_x80_cp1258_1() {
|
|
|
408 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1258.xml');
|
|
|
409 |
|
|
|
410 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
411 |
|
|
|
412 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
413 |
}
|
|
|
414 |
|
|
|
415 |
function test_x80_cp437_1() {
|
|
|
416 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp437.xml');
|
|
|
417 |
|
|
|
418 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
419 |
|
|
|
420 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
421 |
}
|
|
|
422 |
|
|
|
423 |
function test_x80_cp500_0() {
|
|
|
424 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp500.xml');
|
|
|
425 |
|
|
|
426 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
427 |
|
|
|
428 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
429 |
}
|
|
|
430 |
|
|
|
431 |
function test_x80_cp737_1() {
|
|
|
432 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp737.xml');
|
|
|
433 |
|
|
|
434 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
435 |
|
|
|
436 |
$this->assertEquals('\u0391', $feed->title);
|
|
|
437 |
}
|
|
|
438 |
|
|
|
439 |
function test_x80_cp775_1() {
|
|
|
440 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp775.xml');
|
|
|
441 |
|
|
|
442 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
443 |
|
|
|
444 |
$this->assertEquals('\u0106', $feed->title);
|
|
|
445 |
}
|
|
|
446 |
|
|
|
447 |
function test_x80_cp850_1() {
|
|
|
448 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp850.xml');
|
|
|
449 |
|
|
|
450 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
451 |
|
|
|
452 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
453 |
}
|
|
|
454 |
|
|
|
455 |
function test_x80_cp852_1() {
|
|
|
456 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp852.xml');
|
|
|
457 |
|
|
|
458 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
459 |
|
|
|
460 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
461 |
}
|
|
|
462 |
|
|
|
463 |
function test_x80_cp855_1() {
|
|
|
464 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp855.xml');
|
|
|
465 |
|
|
|
466 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
467 |
|
|
|
468 |
$this->assertEquals('\u0452', $feed->title);
|
|
|
469 |
}
|
|
|
470 |
|
|
|
471 |
function test_x80_cp856_1() {
|
|
|
472 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp856.xml');
|
|
|
473 |
|
|
|
474 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
475 |
|
|
|
476 |
$this->assertEquals('\u05d0', $feed->title);
|
|
|
477 |
}
|
|
|
478 |
|
|
|
479 |
function test_x80_cp857_1() {
|
|
|
480 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp857.xml');
|
|
|
481 |
|
|
|
482 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
483 |
|
|
|
484 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
485 |
}
|
|
|
486 |
|
|
|
487 |
function test_x80_cp860_1() {
|
|
|
488 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp860.xml');
|
|
|
489 |
|
|
|
490 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
491 |
|
|
|
492 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
493 |
}
|
|
|
494 |
|
|
|
495 |
function test_x80_cp861_1() {
|
|
|
496 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp861.xml');
|
|
|
497 |
|
|
|
498 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
499 |
|
|
|
500 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
501 |
}
|
|
|
502 |
|
|
|
503 |
function test_x80_cp862_1() {
|
|
|
504 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp862.xml');
|
|
|
505 |
|
|
|
506 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
507 |
|
|
|
508 |
$this->assertEquals('\u05d0', $feed->title);
|
|
|
509 |
}
|
|
|
510 |
|
|
|
511 |
function test_x80_cp863_1() {
|
|
|
512 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp863.xml');
|
|
|
513 |
|
|
|
514 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
515 |
|
|
|
516 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
517 |
}
|
|
|
518 |
|
|
|
519 |
function test_x80_cp864_1() {
|
|
|
520 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp864.xml');
|
|
|
521 |
|
|
|
522 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
523 |
|
|
|
524 |
$this->assertEquals('\xb0', $feed->title);
|
|
|
525 |
}
|
|
|
526 |
|
|
|
527 |
function test_x80_cp865_1() {
|
|
|
528 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp865.xml');
|
|
|
529 |
|
|
|
530 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
531 |
|
|
|
532 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
533 |
}
|
|
|
534 |
|
|
|
535 |
function test_x80_cp866_1() {
|
|
|
536 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp866.xml');
|
|
|
537 |
|
|
|
538 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
539 |
|
|
|
540 |
$this->assertEquals('\u0410', $feed->title);
|
|
|
541 |
}
|
|
|
542 |
|
|
|
543 |
function test_x80_cp874_1() {
|
|
|
544 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp874.xml');
|
|
|
545 |
|
|
|
546 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
547 |
|
|
|
548 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
549 |
}
|
|
|
550 |
|
|
|
551 |
function test_x80_cp875_0() {
|
|
|
552 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp875.xml');
|
|
|
553 |
|
|
|
554 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
555 |
|
|
|
556 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
557 |
}
|
|
|
558 |
|
|
|
559 |
function test_x80_cp_is_1() {
|
|
|
560 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp_is.xml');
|
|
|
561 |
|
|
|
562 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
563 |
|
|
|
564 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
565 |
}
|
|
|
566 |
|
|
|
567 |
function test_x80_csibm037_0() {
|
|
|
568 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm037.xml');
|
|
|
569 |
|
|
|
570 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
571 |
|
|
|
572 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
573 |
}
|
|
|
574 |
|
|
|
575 |
function test_x80_csibm500_0() {
|
|
|
576 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm500.xml');
|
|
|
577 |
|
|
|
578 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
579 |
|
|
|
580 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
581 |
}
|
|
|
582 |
|
|
|
583 |
function test_x80_csibm855_1() {
|
|
|
584 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm855.xml');
|
|
|
585 |
|
|
|
586 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
587 |
|
|
|
588 |
$this->assertEquals('\u0452', $feed->title);
|
|
|
589 |
}
|
|
|
590 |
|
|
|
591 |
function test_x80_csibm857_1() {
|
|
|
592 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm857.xml');
|
|
|
593 |
|
|
|
594 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
595 |
|
|
|
596 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
597 |
}
|
|
|
598 |
|
|
|
599 |
function test_x80_csibm860_1() {
|
|
|
600 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm860.xml');
|
|
|
601 |
|
|
|
602 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
603 |
|
|
|
604 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
605 |
}
|
|
|
606 |
|
|
|
607 |
function test_x80_csibm861_1() {
|
|
|
608 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm861.xml');
|
|
|
609 |
|
|
|
610 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
611 |
|
|
|
612 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
613 |
}
|
|
|
614 |
|
|
|
615 |
function test_x80_csibm863_1() {
|
|
|
616 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm863.xml');
|
|
|
617 |
|
|
|
618 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
619 |
|
|
|
620 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
621 |
}
|
|
|
622 |
|
|
|
623 |
function test_x80_csibm864_1() {
|
|
|
624 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm864.xml');
|
|
|
625 |
|
|
|
626 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
627 |
|
|
|
628 |
$this->assertEquals('\xb0', $feed->title);
|
|
|
629 |
}
|
|
|
630 |
|
|
|
631 |
function test_x80_csibm865_1() {
|
|
|
632 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm865.xml');
|
|
|
633 |
|
|
|
634 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
635 |
|
|
|
636 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
637 |
}
|
|
|
638 |
|
|
|
639 |
function test_x80_csibm866_1() {
|
|
|
640 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm866.xml');
|
|
|
641 |
|
|
|
642 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
643 |
|
|
|
644 |
$this->assertEquals('\u0410', $feed->title);
|
|
|
645 |
}
|
|
|
646 |
|
|
|
647 |
function test_x80_cskoi8r_1() {
|
|
|
648 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cskoi8r.xml');
|
|
|
649 |
|
|
|
650 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
651 |
|
|
|
652 |
$this->assertEquals('\u2500', $feed->title);
|
|
|
653 |
}
|
|
|
654 |
|
|
|
655 |
function test_x80_csmacintosh_1() {
|
|
|
656 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csmacintosh.xml');
|
|
|
657 |
|
|
|
658 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
659 |
|
|
|
660 |
$this->assertEquals('\xc4', $feed->title);
|
|
|
661 |
}
|
|
|
662 |
|
|
|
663 |
function test_x80_cspc775baltic_1() {
|
|
|
664 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cspc775baltic.xml');
|
|
|
665 |
|
|
|
666 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
667 |
|
|
|
668 |
$this->assertEquals('\u0106', $feed->title);
|
|
|
669 |
}
|
|
|
670 |
|
|
|
671 |
function test_x80_cspc850multilingual_1() {
|
|
|
672 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cspc850multilingual.xml');
|
|
|
673 |
|
|
|
674 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
675 |
|
|
|
676 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
677 |
}
|
|
|
678 |
|
|
|
679 |
function test_x80_cspc862latinhebrew_1() {
|
|
|
680 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cspc862latinhebrew.xml');
|
|
|
681 |
|
|
|
682 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
683 |
|
|
|
684 |
$this->assertEquals('\u05d0', $feed->title);
|
|
|
685 |
}
|
|
|
686 |
|
|
|
687 |
function test_x80_cspc8codepage437_1() {
|
|
|
688 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cspc8codepage437.xml');
|
|
|
689 |
|
|
|
690 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
691 |
|
|
|
692 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
693 |
}
|
|
|
694 |
|
|
|
695 |
function test_x80_cspcp852_1() {
|
|
|
696 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cspcp852.xml');
|
|
|
697 |
|
|
|
698 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
699 |
|
|
|
700 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
701 |
}
|
|
|
702 |
|
|
|
703 |
function test_x80_dbcs_1() {
|
|
|
704 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_dbcs.xml');
|
|
|
705 |
|
|
|
706 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
707 |
|
|
|
708 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
709 |
}
|
|
|
710 |
|
|
|
711 |
function test_x80_ebcdic_cp_be_0() {
|
|
|
712 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic_cp_be.xml');
|
|
|
713 |
|
|
|
714 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
715 |
|
|
|
716 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
717 |
}
|
|
|
718 |
|
|
|
719 |
function test_x80_ebcdic_cp_ca_0() {
|
|
|
720 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic_cp_ca.xml');
|
|
|
721 |
|
|
|
722 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
723 |
|
|
|
724 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
725 |
}
|
|
|
726 |
|
|
|
727 |
function test_x80_ebcdic_cp_ch_0() {
|
|
|
728 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic_cp_ch.xml');
|
|
|
729 |
|
|
|
730 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
731 |
|
|
|
732 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
733 |
}
|
|
|
734 |
|
|
|
735 |
function test_x80_ebcdic_cp_nl_0() {
|
|
|
736 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic_cp_nl.xml');
|
|
|
737 |
|
|
|
738 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
739 |
|
|
|
740 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
741 |
}
|
|
|
742 |
|
|
|
743 |
function test_x80_ebcdic_cp_us_0() {
|
|
|
744 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic_cp_us.xml');
|
|
|
745 |
|
|
|
746 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
747 |
|
|
|
748 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
749 |
}
|
|
|
750 |
|
|
|
751 |
function test_x80_ebcdic_cp_wt_0() {
|
|
|
752 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic_cp_wt.xml');
|
|
|
753 |
|
|
|
754 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
755 |
|
|
|
756 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
757 |
}
|
|
|
758 |
|
|
|
759 |
function test_x80_ibm037_0() {
|
|
|
760 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm037.xml');
|
|
|
761 |
|
|
|
762 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
763 |
|
|
|
764 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
765 |
}
|
|
|
766 |
|
|
|
767 |
function test_x80_ibm039_0() {
|
|
|
768 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm039.xml');
|
|
|
769 |
|
|
|
770 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
771 |
|
|
|
772 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
773 |
}
|
|
|
774 |
|
|
|
775 |
function test_x80_ibm1140_0() {
|
|
|
776 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm1140.xml');
|
|
|
777 |
|
|
|
778 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
779 |
|
|
|
780 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
781 |
}
|
|
|
782 |
|
|
|
783 |
function test_x80_ibm437_1() {
|
|
|
784 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm437.xml');
|
|
|
785 |
|
|
|
786 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
787 |
|
|
|
788 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
789 |
}
|
|
|
790 |
|
|
|
791 |
function test_x80_ibm500_0() {
|
|
|
792 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm500.xml');
|
|
|
793 |
|
|
|
794 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
795 |
|
|
|
796 |
$this->markTestIncomplete("Expected result needs verification");
|
|
|
797 |
}
|
|
|
798 |
|
|
|
799 |
function test_x80_ibm775_1() {
|
|
|
800 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm775.xml');
|
|
|
801 |
|
|
|
802 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
803 |
|
|
|
804 |
$this->assertEquals('\u0106', $feed->title);
|
|
|
805 |
}
|
|
|
806 |
|
|
|
807 |
function test_x80_ibm850_1() {
|
|
|
808 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm850.xml');
|
|
|
809 |
|
|
|
810 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
811 |
|
|
|
812 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
813 |
}
|
|
|
814 |
|
|
|
815 |
function test_x80_ibm852_1() {
|
|
|
816 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm852.xml');
|
|
|
817 |
|
|
|
818 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
819 |
|
|
|
820 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
821 |
}
|
|
|
822 |
|
|
|
823 |
function test_x80_ibm855_1() {
|
|
|
824 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm855.xml');
|
|
|
825 |
|
|
|
826 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
827 |
|
|
|
828 |
$this->assertEquals('\u0452', $feed->title);
|
|
|
829 |
}
|
|
|
830 |
|
|
|
831 |
function test_x80_ibm857_1() {
|
|
|
832 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm857.xml');
|
|
|
833 |
|
|
|
834 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
835 |
|
|
|
836 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
837 |
}
|
|
|
838 |
|
|
|
839 |
function test_x80_ibm860_1() {
|
|
|
840 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm860.xml');
|
|
|
841 |
|
|
|
842 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
843 |
|
|
|
844 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
845 |
}
|
|
|
846 |
|
|
|
847 |
function test_x80_ibm861_1() {
|
|
|
848 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm861.xml');
|
|
|
849 |
|
|
|
850 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
851 |
|
|
|
852 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
853 |
}
|
|
|
854 |
|
|
|
855 |
function test_x80_ibm862_1() {
|
|
|
856 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm862.xml');
|
|
|
857 |
|
|
|
858 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
859 |
|
|
|
860 |
$this->assertEquals('\u05d0', $feed->title);
|
|
|
861 |
}
|
|
|
862 |
|
|
|
863 |
function test_x80_ibm863_1() {
|
|
|
864 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm863.xml');
|
|
|
865 |
|
|
|
866 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
867 |
|
|
|
868 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
869 |
}
|
|
|
870 |
|
|
|
871 |
function test_x80_ibm864_1() {
|
|
|
872 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm864.xml');
|
|
|
873 |
|
|
|
874 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
875 |
|
|
|
876 |
$this->assertEquals('\xb0', $feed->title);
|
|
|
877 |
}
|
|
|
878 |
|
|
|
879 |
function test_x80_ibm865_1() {
|
|
|
880 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm865.xml');
|
|
|
881 |
|
|
|
882 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
883 |
|
|
|
884 |
$this->assertEquals('\xc7', $feed->title);
|
|
|
885 |
}
|
|
|
886 |
|
|
|
887 |
function test_x80_ibm866_1() {
|
|
|
888 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm866.xml');
|
|
|
889 |
|
|
|
890 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
891 |
|
|
|
892 |
$this->assertEquals('\u0410', $feed->title);
|
|
|
893 |
}
|
|
|
894 |
|
|
|
895 |
function test_x80_koi8_r_1() {
|
|
|
896 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_koi8-r.xml');
|
|
|
897 |
|
|
|
898 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
899 |
|
|
|
900 |
$this->assertEquals('\u2500', $feed->title);
|
|
|
901 |
}
|
|
|
902 |
|
|
|
903 |
function test_x80_koi8_t_1() {
|
|
|
904 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_koi8-t.xml');
|
|
|
905 |
|
|
|
906 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
907 |
|
|
|
908 |
$this->assertEquals('\u049b', $feed->title);
|
|
|
909 |
}
|
|
|
910 |
|
|
|
911 |
function test_x80_koi8_u_1() {
|
|
|
912 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_koi8-u.xml');
|
|
|
913 |
|
|
|
914 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
915 |
|
|
|
916 |
$this->assertEquals('\u2500', $feed->title);
|
|
|
917 |
}
|
|
|
918 |
|
|
|
919 |
function test_x80_mac_cyrillic_1() {
|
|
|
920 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_mac-cyrillic.xml');
|
|
|
921 |
|
|
|
922 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
923 |
|
|
|
924 |
$this->assertEquals('\u0410', $feed->title);
|
|
|
925 |
}
|
|
|
926 |
|
|
|
927 |
function test_x80_mac_1() {
|
|
|
928 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_mac.xml');
|
|
|
929 |
|
|
|
930 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
931 |
|
|
|
932 |
$this->assertEquals('\xc4', $feed->title);
|
|
|
933 |
}
|
|
|
934 |
|
|
|
935 |
function test_x80_maccentraleurope_1() {
|
|
|
936 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_maccentraleurope.xml');
|
|
|
937 |
|
|
|
938 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
939 |
|
|
|
940 |
$this->assertEquals('\xc4', $feed->title);
|
|
|
941 |
}
|
|
|
942 |
|
|
|
943 |
function test_x80_maccyrillic_1() {
|
|
|
944 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_maccyrillic.xml');
|
|
|
945 |
|
|
|
946 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
947 |
|
|
|
948 |
$this->assertEquals('\u0410', $feed->title);
|
|
|
949 |
}
|
|
|
950 |
|
|
|
951 |
function test_x80_macgreek_1() {
|
|
|
952 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_macgreek.xml');
|
|
|
953 |
|
|
|
954 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
955 |
|
|
|
956 |
$this->assertEquals('\xc4', $feed->title);
|
|
|
957 |
}
|
|
|
958 |
|
|
|
959 |
function test_x80_maciceland_1() {
|
|
|
960 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_maciceland.xml');
|
|
|
961 |
|
|
|
962 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
963 |
|
|
|
964 |
$this->assertEquals('\xc4', $feed->title);
|
|
|
965 |
}
|
|
|
966 |
|
|
|
967 |
function test_x80_macintosh_1() {
|
|
|
968 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_macintosh.xml');
|
|
|
969 |
|
|
|
970 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
971 |
|
|
|
972 |
$this->assertEquals('\xc4', $feed->title);
|
|
|
973 |
}
|
|
|
974 |
|
|
|
975 |
function test_x80_maclatin2_1() {
|
|
|
976 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_maclatin2.xml');
|
|
|
977 |
|
|
|
978 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
979 |
|
|
|
980 |
$this->assertEquals('\xc4', $feed->title);
|
|
|
981 |
}
|
|
|
982 |
|
|
|
983 |
function test_x80_macroman_1() {
|
|
|
984 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_macroman.xml');
|
|
|
985 |
|
|
|
986 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
987 |
|
|
|
988 |
$this->assertEquals('\xc4', $feed->title);
|
|
|
989 |
}
|
|
|
990 |
|
|
|
991 |
function test_x80_macturkish_1() {
|
|
|
992 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_macturkish.xml');
|
|
|
993 |
|
|
|
994 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
995 |
|
|
|
996 |
$this->assertEquals('\xc4', $feed->title);
|
|
|
997 |
}
|
|
|
998 |
|
|
|
999 |
function test_x80_ms_ansi_1() {
|
|
|
1000 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-ansi.xml');
|
|
|
1001 |
|
|
|
1002 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1003 |
|
|
|
1004 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
1005 |
}
|
|
|
1006 |
|
|
|
1007 |
function test_x80_ms_arab_1() {
|
|
|
1008 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-arab.xml');
|
|
|
1009 |
|
|
|
1010 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1011 |
|
|
|
1012 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
1013 |
}
|
|
|
1014 |
|
|
|
1015 |
function test_x80_ms_cyrl_1() {
|
|
|
1016 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-cyrl.xml');
|
|
|
1017 |
|
|
|
1018 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1019 |
|
|
|
1020 |
$this->assertEquals('\u0402', $feed->title);
|
|
|
1021 |
}
|
|
|
1022 |
|
|
|
1023 |
function test_x80_ms_ee_1() {
|
|
|
1024 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-ee.xml');
|
|
|
1025 |
|
|
|
1026 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1027 |
|
|
|
1028 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
1029 |
}
|
|
|
1030 |
|
|
|
1031 |
function test_x80_ms_greek_1() {
|
|
|
1032 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-greek.xml');
|
|
|
1033 |
|
|
|
1034 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1035 |
|
|
|
1036 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
1037 |
}
|
|
|
1038 |
|
|
|
1039 |
function test_x80_ms_hebr_1() {
|
|
|
1040 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-hebr.xml');
|
|
|
1041 |
|
|
|
1042 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1043 |
|
|
|
1044 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
1045 |
}
|
|
|
1046 |
|
|
|
1047 |
function test_x80_ms_turk_1() {
|
|
|
1048 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-turk.xml');
|
|
|
1049 |
|
|
|
1050 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1051 |
|
|
|
1052 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
1053 |
}
|
|
|
1054 |
|
|
|
1055 |
function test_x80_tcvn_5712_1() {
|
|
|
1056 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_tcvn-5712.xml');
|
|
|
1057 |
|
|
|
1058 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1059 |
|
|
|
1060 |
$this->assertEquals('\xc0', $feed->title);
|
|
|
1061 |
}
|
|
|
1062 |
|
|
|
1063 |
function test_x80_tcvn_1() {
|
|
|
1064 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_tcvn.xml');
|
|
|
1065 |
|
|
|
1066 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1067 |
|
|
|
1068 |
$this->assertEquals('\xc0', $feed->title);
|
|
|
1069 |
}
|
|
|
1070 |
|
|
|
1071 |
function test_x80_tcvn5712_1_1() {
|
|
|
1072 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_tcvn5712-1.xml');
|
|
|
1073 |
|
|
|
1074 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1075 |
|
|
|
1076 |
$this->assertEquals('\xc0', $feed->title);
|
|
|
1077 |
}
|
|
|
1078 |
|
|
|
1079 |
function test_x80_viscii_1() {
|
|
|
1080 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_viscii.xml');
|
|
|
1081 |
|
|
|
1082 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1083 |
|
|
|
1084 |
$this->assertEquals('\u1ea0', $feed->title);
|
|
|
1085 |
}
|
|
|
1086 |
|
|
|
1087 |
function test_x80_winbaltrim_1() {
|
|
|
1088 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_winbaltrim.xml');
|
|
|
1089 |
|
|
|
1090 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1091 |
|
|
|
1092 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
1093 |
}
|
|
|
1094 |
|
|
|
1095 |
function test_x80_windows_1250_1() {
|
|
|
1096 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1250.xml');
|
|
|
1097 |
|
|
|
1098 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1099 |
|
|
|
1100 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
1101 |
}
|
|
|
1102 |
|
|
|
1103 |
function test_x80_windows_1251_1() {
|
|
|
1104 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1251.xml');
|
|
|
1105 |
|
|
|
1106 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1107 |
|
|
|
1108 |
$this->assertEquals('\u0402', $feed->title);
|
|
|
1109 |
}
|
|
|
1110 |
|
|
|
1111 |
function test_x80_windows_1252_1() {
|
|
|
1112 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1252.xml');
|
|
|
1113 |
|
|
|
1114 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1115 |
|
|
|
1116 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
1117 |
}
|
|
|
1118 |
|
|
|
1119 |
function test_x80_windows_1253_1() {
|
|
|
1120 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1253.xml');
|
|
|
1121 |
|
|
|
1122 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1123 |
|
|
|
1124 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
1125 |
}
|
|
|
1126 |
|
|
|
1127 |
function test_x80_windows_1254_1() {
|
|
|
1128 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1254.xml');
|
|
|
1129 |
|
|
|
1130 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1131 |
|
|
|
1132 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
1133 |
}
|
|
|
1134 |
|
|
|
1135 |
function test_x80_windows_1255_1() {
|
|
|
1136 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1255.xml');
|
|
|
1137 |
|
|
|
1138 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1139 |
|
|
|
1140 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
1141 |
}
|
|
|
1142 |
|
|
|
1143 |
function test_x80_windows_1256_1() {
|
|
|
1144 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1256.xml');
|
|
|
1145 |
|
|
|
1146 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1147 |
|
|
|
1148 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
1149 |
}
|
|
|
1150 |
|
|
|
1151 |
function test_x80_windows_1257_1() {
|
|
|
1152 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1257.xml');
|
|
|
1153 |
|
|
|
1154 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1155 |
|
|
|
1156 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
1157 |
}
|
|
|
1158 |
|
|
|
1159 |
function test_x80_windows_1258_1() {
|
|
|
1160 |
$content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1258.xml');
|
|
|
1161 |
|
|
|
1162 |
$feed = new XML_Feed_Parser($content, false, true);
|
|
|
1163 |
|
|
|
1164 |
$this->assertEquals('\u20ac', $feed->title);
|
|
|
1165 |
}
|
|
|
1166 |
|
|
|
1167 |
}
|
|
|
1168 |
?>
|