[14681] | 1 | <?php |
---|
| 2 | |
---|
| 3 | require_once '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 | try { |
---|
| 10 | $feed = new XML_Feed_Parser($content); |
---|
| 11 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 12 | $this->assertTrue(false); |
---|
| 13 | return; |
---|
| 14 | } |
---|
| 15 | $this->assertEquals(, ); |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | function test_csunicode_0 () { |
---|
| 19 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/csunicode.xml'); |
---|
| 20 | try { |
---|
| 21 | $feed = new XML_Feed_Parser($content); |
---|
| 22 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 23 | $this->assertTrue(false); |
---|
| 24 | return; |
---|
| 25 | } |
---|
| 26 | $this->assertEquals(, ); |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | function test_encoding_attribute_crash_0 () { |
---|
| 30 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/encoding_attribute_crash.xml'); |
---|
| 31 | try { |
---|
| 32 | $feed = new XML_Feed_Parser($content); |
---|
| 33 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 34 | $this->assertTrue(false); |
---|
| 35 | return; |
---|
| 36 | } |
---|
| 37 | $this->assertEquals(, 1); |
---|
| 38 | } |
---|
| 39 | |
---|
| 40 | function test_encoding_attribute_crash_2_0 () { |
---|
| 41 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/encoding_attribute_crash_2.xml'); |
---|
| 42 | try { |
---|
| 43 | $feed = new XML_Feed_Parser($content); |
---|
| 44 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 45 | $this->assertTrue(false); |
---|
| 46 | return; |
---|
| 47 | } |
---|
| 48 | $this->assertEquals(, 1); |
---|
| 49 | } |
---|
| 50 | |
---|
| 51 | function test_euc-kr-attribute_1 () { |
---|
| 52 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/euc-kr-attribute.xml'); |
---|
| 53 | try { |
---|
| 54 | $feed = new XML_Feed_Parser($content); |
---|
| 55 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 56 | $this->assertTrue(false); |
---|
| 57 | return; |
---|
| 58 | } |
---|
| 59 | $this->assertEquals('<img alt="\ub144" />', $feed->getEntryByOffset(0)->description); |
---|
| 60 | } |
---|
| 61 | |
---|
| 62 | function test_euc-kr-item_1 () { |
---|
| 63 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/euc-kr-item.xml'); |
---|
| 64 | try { |
---|
| 65 | $feed = new XML_Feed_Parser($content); |
---|
| 66 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 67 | $this->assertTrue(false); |
---|
| 68 | return; |
---|
| 69 | } |
---|
| 70 | $this->assertEquals('\ub144', $feed->getEntryByOffset(0)->description); |
---|
| 71 | } |
---|
| 72 | |
---|
| 73 | function test_euc-kr_1 () { |
---|
| 74 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/euc-kr.xml'); |
---|
| 75 | try { |
---|
| 76 | $feed = new XML_Feed_Parser($content); |
---|
| 77 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 78 | $this->assertTrue(false); |
---|
| 79 | return; |
---|
| 80 | } |
---|
| 81 | $this->assertEquals('\ub144', $feed->title); |
---|
| 82 | } |
---|
| 83 | |
---|
| 84 | function test_http_text_xml_charset_2_1 () { |
---|
| 85 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/http_text_xml_charset_2.xml'); |
---|
| 86 | try { |
---|
| 87 | $feed = new XML_Feed_Parser($content); |
---|
| 88 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 89 | $this->assertTrue(false); |
---|
| 90 | return; |
---|
| 91 | } |
---|
| 92 | $this->assertEquals('This is a \xa3\u201ctest.\u201d', $feed->getEntryByOffset(0)->description); |
---|
| 93 | } |
---|
| 94 | |
---|
| 95 | function test_http_text_xml_charset_overrides_encoding_2_1 () { |
---|
| 96 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/http_text_xml_charset_overrides_encoding_2.xml'); |
---|
| 97 | try { |
---|
| 98 | $feed = new XML_Feed_Parser($content); |
---|
| 99 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 100 | $this->assertTrue(false); |
---|
| 101 | return; |
---|
| 102 | } |
---|
| 103 | $this->assertEquals('This is a \xa3\u201ctest.\u201d', $feed->getEntryByOffset(0)->description); |
---|
| 104 | } |
---|
| 105 | |
---|
| 106 | function test_iso-10646-ucs-2_0 () { |
---|
| 107 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/iso-10646-ucs-2.xml'); |
---|
| 108 | try { |
---|
| 109 | $feed = new XML_Feed_Parser($content); |
---|
| 110 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 111 | $this->assertTrue(false); |
---|
| 112 | return; |
---|
| 113 | } |
---|
| 114 | $this->assertEquals(, ); |
---|
| 115 | } |
---|
| 116 | |
---|
| 117 | function test_iso-10646-ucs-4_0 () { |
---|
| 118 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/iso-10646-ucs-4.xml'); |
---|
| 119 | try { |
---|
| 120 | $feed = new XML_Feed_Parser($content); |
---|
| 121 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 122 | $this->assertTrue(false); |
---|
| 123 | return; |
---|
| 124 | } |
---|
| 125 | $this->assertEquals(, ); |
---|
| 126 | } |
---|
| 127 | |
---|
| 128 | function test_u16_0 () { |
---|
| 129 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/u16.xml'); |
---|
| 130 | try { |
---|
| 131 | $feed = new XML_Feed_Parser($content); |
---|
| 132 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 133 | $this->assertTrue(false); |
---|
| 134 | return; |
---|
| 135 | } |
---|
| 136 | $this->assertEquals(, ); |
---|
| 137 | } |
---|
| 138 | |
---|
| 139 | function test_ucs-2_0 () { |
---|
| 140 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/ucs-2.xml'); |
---|
| 141 | try { |
---|
| 142 | $feed = new XML_Feed_Parser($content); |
---|
| 143 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 144 | $this->assertTrue(false); |
---|
| 145 | return; |
---|
| 146 | } |
---|
| 147 | $this->assertEquals(, ); |
---|
| 148 | } |
---|
| 149 | |
---|
| 150 | function test_ucs-4_0 () { |
---|
| 151 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/ucs-4.xml'); |
---|
| 152 | try { |
---|
| 153 | $feed = new XML_Feed_Parser($content); |
---|
| 154 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 155 | $this->assertTrue(false); |
---|
| 156 | return; |
---|
| 157 | } |
---|
| 158 | $this->assertEquals(, ); |
---|
| 159 | } |
---|
| 160 | |
---|
| 161 | function test_utf-16be-autodetect_0 () { |
---|
| 162 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-16be-autodetect.xml'); |
---|
| 163 | try { |
---|
| 164 | $feed = new XML_Feed_Parser($content); |
---|
| 165 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 166 | $this->assertTrue(false); |
---|
| 167 | return; |
---|
| 168 | } |
---|
| 169 | $this->assertEquals(, ); |
---|
| 170 | } |
---|
| 171 | |
---|
| 172 | function test_utf-16be-bom_0 () { |
---|
| 173 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-16be-bom.xml'); |
---|
| 174 | try { |
---|
| 175 | $feed = new XML_Feed_Parser($content); |
---|
| 176 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 177 | $this->assertTrue(false); |
---|
| 178 | return; |
---|
| 179 | } |
---|
| 180 | $this->assertEquals(, ); |
---|
| 181 | } |
---|
| 182 | |
---|
| 183 | function test_utf-16be_0 () { |
---|
| 184 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-16be.xml'); |
---|
| 185 | try { |
---|
| 186 | $feed = new XML_Feed_Parser($content); |
---|
| 187 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 188 | $this->assertTrue(false); |
---|
| 189 | return; |
---|
| 190 | } |
---|
| 191 | $this->assertEquals(, ); |
---|
| 192 | } |
---|
| 193 | |
---|
| 194 | function test_utf-16le-autodetect_0 () { |
---|
| 195 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-16le-autodetect.xml'); |
---|
| 196 | try { |
---|
| 197 | $feed = new XML_Feed_Parser($content); |
---|
| 198 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 199 | $this->assertTrue(false); |
---|
| 200 | return; |
---|
| 201 | } |
---|
| 202 | $this->assertEquals(, ); |
---|
| 203 | } |
---|
| 204 | |
---|
| 205 | function test_utf-16le-bom_0 () { |
---|
| 206 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-16le-bom.xml'); |
---|
| 207 | try { |
---|
| 208 | $feed = new XML_Feed_Parser($content); |
---|
| 209 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 210 | $this->assertTrue(false); |
---|
| 211 | return; |
---|
| 212 | } |
---|
| 213 | $this->assertEquals(, ); |
---|
| 214 | } |
---|
| 215 | |
---|
| 216 | function test_utf-16le_0 () { |
---|
| 217 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-16le.xml'); |
---|
| 218 | try { |
---|
| 219 | $feed = new XML_Feed_Parser($content); |
---|
| 220 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 221 | $this->assertTrue(false); |
---|
| 222 | return; |
---|
| 223 | } |
---|
| 224 | $this->assertEquals(, ); |
---|
| 225 | } |
---|
| 226 | |
---|
| 227 | function test_utf-32be-autodetect_0 () { |
---|
| 228 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-32be-autodetect.xml'); |
---|
| 229 | try { |
---|
| 230 | $feed = new XML_Feed_Parser($content); |
---|
| 231 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 232 | $this->assertTrue(false); |
---|
| 233 | return; |
---|
| 234 | } |
---|
| 235 | $this->assertEquals(, ); |
---|
| 236 | } |
---|
| 237 | |
---|
| 238 | function test_utf-32be-bom_0 () { |
---|
| 239 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-32be-bom.xml'); |
---|
| 240 | try { |
---|
| 241 | $feed = new XML_Feed_Parser($content); |
---|
| 242 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 243 | $this->assertTrue(false); |
---|
| 244 | return; |
---|
| 245 | } |
---|
| 246 | $this->assertEquals(, ); |
---|
| 247 | } |
---|
| 248 | |
---|
| 249 | function test_utf-32be_0 () { |
---|
| 250 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-32be.xml'); |
---|
| 251 | try { |
---|
| 252 | $feed = new XML_Feed_Parser($content); |
---|
| 253 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 254 | $this->assertTrue(false); |
---|
| 255 | return; |
---|
| 256 | } |
---|
| 257 | $this->assertEquals(, ); |
---|
| 258 | } |
---|
| 259 | |
---|
| 260 | function test_utf-32le-autodetect_0 () { |
---|
| 261 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-32le-autodetect.xml'); |
---|
| 262 | try { |
---|
| 263 | $feed = new XML_Feed_Parser($content); |
---|
| 264 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 265 | $this->assertTrue(false); |
---|
| 266 | return; |
---|
| 267 | } |
---|
| 268 | $this->assertEquals(, ); |
---|
| 269 | } |
---|
| 270 | |
---|
| 271 | function test_utf-32le-bom_0 () { |
---|
| 272 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-32le-bom.xml'); |
---|
| 273 | try { |
---|
| 274 | $feed = new XML_Feed_Parser($content); |
---|
| 275 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 276 | $this->assertTrue(false); |
---|
| 277 | return; |
---|
| 278 | } |
---|
| 279 | $this->assertEquals(, ); |
---|
| 280 | } |
---|
| 281 | |
---|
| 282 | function test_utf-32le_0 () { |
---|
| 283 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf-32le.xml'); |
---|
| 284 | try { |
---|
| 285 | $feed = new XML_Feed_Parser($content); |
---|
| 286 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 287 | $this->assertTrue(false); |
---|
| 288 | return; |
---|
| 289 | } |
---|
| 290 | $this->assertEquals(, ); |
---|
| 291 | } |
---|
| 292 | |
---|
| 293 | function test_utf16_0 () { |
---|
| 294 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf16.xml'); |
---|
| 295 | try { |
---|
| 296 | $feed = new XML_Feed_Parser($content); |
---|
| 297 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 298 | $this->assertTrue(false); |
---|
| 299 | return; |
---|
| 300 | } |
---|
| 301 | $this->assertEquals(, ); |
---|
| 302 | } |
---|
| 303 | |
---|
| 304 | function test_utf_16_0 () { |
---|
| 305 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf_16.xml'); |
---|
| 306 | try { |
---|
| 307 | $feed = new XML_Feed_Parser($content); |
---|
| 308 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 309 | $this->assertTrue(false); |
---|
| 310 | return; |
---|
| 311 | } |
---|
| 312 | $this->assertEquals(, ); |
---|
| 313 | } |
---|
| 314 | |
---|
| 315 | function test_utf_32_0 () { |
---|
| 316 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/utf_32.xml'); |
---|
| 317 | try { |
---|
| 318 | $feed = new XML_Feed_Parser($content); |
---|
| 319 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 320 | $this->assertTrue(false); |
---|
| 321 | return; |
---|
| 322 | } |
---|
| 323 | $this->assertEquals(, ); |
---|
| 324 | } |
---|
| 325 | |
---|
| 326 | function test_x80_437_1 () { |
---|
| 327 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_437.xml'); |
---|
| 328 | try { |
---|
| 329 | $feed = new XML_Feed_Parser($content); |
---|
| 330 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 331 | $this->assertTrue(false); |
---|
| 332 | return; |
---|
| 333 | } |
---|
| 334 | $this->assertEquals('\xc7', $feed->title); |
---|
| 335 | } |
---|
| 336 | |
---|
| 337 | function test_x80_850_1 () { |
---|
| 338 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_850.xml'); |
---|
| 339 | try { |
---|
| 340 | $feed = new XML_Feed_Parser($content); |
---|
| 341 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 342 | $this->assertTrue(false); |
---|
| 343 | return; |
---|
| 344 | } |
---|
| 345 | $this->assertEquals('\xc7', $feed->title); |
---|
| 346 | } |
---|
| 347 | |
---|
| 348 | function test_x80_852_1 () { |
---|
| 349 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_852.xml'); |
---|
| 350 | try { |
---|
| 351 | $feed = new XML_Feed_Parser($content); |
---|
| 352 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 353 | $this->assertTrue(false); |
---|
| 354 | return; |
---|
| 355 | } |
---|
| 356 | $this->assertEquals('\xc7', $feed->title); |
---|
| 357 | } |
---|
| 358 | |
---|
| 359 | function test_x80_855_1 () { |
---|
| 360 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_855.xml'); |
---|
| 361 | try { |
---|
| 362 | $feed = new XML_Feed_Parser($content); |
---|
| 363 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 364 | $this->assertTrue(false); |
---|
| 365 | return; |
---|
| 366 | } |
---|
| 367 | $this->assertEquals('\u0452', $feed->title); |
---|
| 368 | } |
---|
| 369 | |
---|
| 370 | function test_x80_857_1 () { |
---|
| 371 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_857.xml'); |
---|
| 372 | try { |
---|
| 373 | $feed = new XML_Feed_Parser($content); |
---|
| 374 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 375 | $this->assertTrue(false); |
---|
| 376 | return; |
---|
| 377 | } |
---|
| 378 | $this->assertEquals('\xc7', $feed->title); |
---|
| 379 | } |
---|
| 380 | |
---|
| 381 | function test_x80_860_1 () { |
---|
| 382 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_860.xml'); |
---|
| 383 | try { |
---|
| 384 | $feed = new XML_Feed_Parser($content); |
---|
| 385 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 386 | $this->assertTrue(false); |
---|
| 387 | return; |
---|
| 388 | } |
---|
| 389 | $this->assertEquals('\xc7', $feed->title); |
---|
| 390 | } |
---|
| 391 | |
---|
| 392 | function test_x80_861_1 () { |
---|
| 393 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_861.xml'); |
---|
| 394 | try { |
---|
| 395 | $feed = new XML_Feed_Parser($content); |
---|
| 396 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 397 | $this->assertTrue(false); |
---|
| 398 | return; |
---|
| 399 | } |
---|
| 400 | $this->assertEquals('\xc7', $feed->title); |
---|
| 401 | } |
---|
| 402 | |
---|
| 403 | function test_x80_862_1 () { |
---|
| 404 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_862.xml'); |
---|
| 405 | try { |
---|
| 406 | $feed = new XML_Feed_Parser($content); |
---|
| 407 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 408 | $this->assertTrue(false); |
---|
| 409 | return; |
---|
| 410 | } |
---|
| 411 | $this->assertEquals('\u05d0', $feed->title); |
---|
| 412 | } |
---|
| 413 | |
---|
| 414 | function test_x80_863_1 () { |
---|
| 415 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_863.xml'); |
---|
| 416 | try { |
---|
| 417 | $feed = new XML_Feed_Parser($content); |
---|
| 418 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 419 | $this->assertTrue(false); |
---|
| 420 | return; |
---|
| 421 | } |
---|
| 422 | $this->assertEquals('\xc7', $feed->title); |
---|
| 423 | } |
---|
| 424 | |
---|
| 425 | function test_x80_865_1 () { |
---|
| 426 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_865.xml'); |
---|
| 427 | try { |
---|
| 428 | $feed = new XML_Feed_Parser($content); |
---|
| 429 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 430 | $this->assertTrue(false); |
---|
| 431 | return; |
---|
| 432 | } |
---|
| 433 | $this->assertEquals('\xc7', $feed->title); |
---|
| 434 | } |
---|
| 435 | |
---|
| 436 | function test_x80_866_1 () { |
---|
| 437 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_866.xml'); |
---|
| 438 | try { |
---|
| 439 | $feed = new XML_Feed_Parser($content); |
---|
| 440 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 441 | $this->assertTrue(false); |
---|
| 442 | return; |
---|
| 443 | } |
---|
| 444 | $this->assertEquals('\u0410', $feed->title); |
---|
| 445 | } |
---|
| 446 | |
---|
| 447 | function test_x80_cp037_0 () { |
---|
| 448 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp037.xml'); |
---|
| 449 | try { |
---|
| 450 | $feed = new XML_Feed_Parser($content); |
---|
| 451 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 452 | $this->assertTrue(false); |
---|
| 453 | return; |
---|
| 454 | } |
---|
| 455 | $this->assertEquals(, ); |
---|
| 456 | } |
---|
| 457 | |
---|
| 458 | function test_x80_cp1125_1 () { |
---|
| 459 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1125.xml'); |
---|
| 460 | try { |
---|
| 461 | $feed = new XML_Feed_Parser($content); |
---|
| 462 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 463 | $this->assertTrue(false); |
---|
| 464 | return; |
---|
| 465 | } |
---|
| 466 | $this->assertEquals('\u0410', $feed->title); |
---|
| 467 | } |
---|
| 468 | |
---|
| 469 | function test_x80_cp1250_1 () { |
---|
| 470 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1250.xml'); |
---|
| 471 | try { |
---|
| 472 | $feed = new XML_Feed_Parser($content); |
---|
| 473 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 474 | $this->assertTrue(false); |
---|
| 475 | return; |
---|
| 476 | } |
---|
| 477 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 478 | } |
---|
| 479 | |
---|
| 480 | function test_x80_cp1251_1 () { |
---|
| 481 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1251.xml'); |
---|
| 482 | try { |
---|
| 483 | $feed = new XML_Feed_Parser($content); |
---|
| 484 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 485 | $this->assertTrue(false); |
---|
| 486 | return; |
---|
| 487 | } |
---|
| 488 | $this->assertEquals('\u0402', $feed->title); |
---|
| 489 | } |
---|
| 490 | |
---|
| 491 | function test_x80_cp1252_1 () { |
---|
| 492 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1252.xml'); |
---|
| 493 | try { |
---|
| 494 | $feed = new XML_Feed_Parser($content); |
---|
| 495 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 496 | $this->assertTrue(false); |
---|
| 497 | return; |
---|
| 498 | } |
---|
| 499 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 500 | } |
---|
| 501 | |
---|
| 502 | function test_x80_cp1253_1 () { |
---|
| 503 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1253.xml'); |
---|
| 504 | try { |
---|
| 505 | $feed = new XML_Feed_Parser($content); |
---|
| 506 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 507 | $this->assertTrue(false); |
---|
| 508 | return; |
---|
| 509 | } |
---|
| 510 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 511 | } |
---|
| 512 | |
---|
| 513 | function test_x80_cp1254_1 () { |
---|
| 514 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1254.xml'); |
---|
| 515 | try { |
---|
| 516 | $feed = new XML_Feed_Parser($content); |
---|
| 517 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 518 | $this->assertTrue(false); |
---|
| 519 | return; |
---|
| 520 | } |
---|
| 521 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 522 | } |
---|
| 523 | |
---|
| 524 | function test_x80_cp1255_1 () { |
---|
| 525 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1255.xml'); |
---|
| 526 | try { |
---|
| 527 | $feed = new XML_Feed_Parser($content); |
---|
| 528 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 529 | $this->assertTrue(false); |
---|
| 530 | return; |
---|
| 531 | } |
---|
| 532 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 533 | } |
---|
| 534 | |
---|
| 535 | function test_x80_cp1256_1 () { |
---|
| 536 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1256.xml'); |
---|
| 537 | try { |
---|
| 538 | $feed = new XML_Feed_Parser($content); |
---|
| 539 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 540 | $this->assertTrue(false); |
---|
| 541 | return; |
---|
| 542 | } |
---|
| 543 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 544 | } |
---|
| 545 | |
---|
| 546 | function test_x80_cp1257_1 () { |
---|
| 547 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1257.xml'); |
---|
| 548 | try { |
---|
| 549 | $feed = new XML_Feed_Parser($content); |
---|
| 550 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 551 | $this->assertTrue(false); |
---|
| 552 | return; |
---|
| 553 | } |
---|
| 554 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 555 | } |
---|
| 556 | |
---|
| 557 | function test_x80_cp1258_1 () { |
---|
| 558 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp1258.xml'); |
---|
| 559 | try { |
---|
| 560 | $feed = new XML_Feed_Parser($content); |
---|
| 561 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 562 | $this->assertTrue(false); |
---|
| 563 | return; |
---|
| 564 | } |
---|
| 565 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 566 | } |
---|
| 567 | |
---|
| 568 | function test_x80_cp437_1 () { |
---|
| 569 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp437.xml'); |
---|
| 570 | try { |
---|
| 571 | $feed = new XML_Feed_Parser($content); |
---|
| 572 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 573 | $this->assertTrue(false); |
---|
| 574 | return; |
---|
| 575 | } |
---|
| 576 | $this->assertEquals('\xc7', $feed->title); |
---|
| 577 | } |
---|
| 578 | |
---|
| 579 | function test_x80_cp500_0 () { |
---|
| 580 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp500.xml'); |
---|
| 581 | try { |
---|
| 582 | $feed = new XML_Feed_Parser($content); |
---|
| 583 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 584 | $this->assertTrue(false); |
---|
| 585 | return; |
---|
| 586 | } |
---|
| 587 | $this->assertEquals(, ); |
---|
| 588 | } |
---|
| 589 | |
---|
| 590 | function test_x80_cp737_1 () { |
---|
| 591 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp737.xml'); |
---|
| 592 | try { |
---|
| 593 | $feed = new XML_Feed_Parser($content); |
---|
| 594 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 595 | $this->assertTrue(false); |
---|
| 596 | return; |
---|
| 597 | } |
---|
| 598 | $this->assertEquals('\u0391', $feed->title); |
---|
| 599 | } |
---|
| 600 | |
---|
| 601 | function test_x80_cp775_1 () { |
---|
| 602 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp775.xml'); |
---|
| 603 | try { |
---|
| 604 | $feed = new XML_Feed_Parser($content); |
---|
| 605 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 606 | $this->assertTrue(false); |
---|
| 607 | return; |
---|
| 608 | } |
---|
| 609 | $this->assertEquals('\u0106', $feed->title); |
---|
| 610 | } |
---|
| 611 | |
---|
| 612 | function test_x80_cp850_1 () { |
---|
| 613 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp850.xml'); |
---|
| 614 | try { |
---|
| 615 | $feed = new XML_Feed_Parser($content); |
---|
| 616 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 617 | $this->assertTrue(false); |
---|
| 618 | return; |
---|
| 619 | } |
---|
| 620 | $this->assertEquals('\xc7', $feed->title); |
---|
| 621 | } |
---|
| 622 | |
---|
| 623 | function test_x80_cp852_1 () { |
---|
| 624 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp852.xml'); |
---|
| 625 | try { |
---|
| 626 | $feed = new XML_Feed_Parser($content); |
---|
| 627 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 628 | $this->assertTrue(false); |
---|
| 629 | return; |
---|
| 630 | } |
---|
| 631 | $this->assertEquals('\xc7', $feed->title); |
---|
| 632 | } |
---|
| 633 | |
---|
| 634 | function test_x80_cp855_1 () { |
---|
| 635 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp855.xml'); |
---|
| 636 | try { |
---|
| 637 | $feed = new XML_Feed_Parser($content); |
---|
| 638 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 639 | $this->assertTrue(false); |
---|
| 640 | return; |
---|
| 641 | } |
---|
| 642 | $this->assertEquals('\u0452', $feed->title); |
---|
| 643 | } |
---|
| 644 | |
---|
| 645 | function test_x80_cp856_1 () { |
---|
| 646 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp856.xml'); |
---|
| 647 | try { |
---|
| 648 | $feed = new XML_Feed_Parser($content); |
---|
| 649 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 650 | $this->assertTrue(false); |
---|
| 651 | return; |
---|
| 652 | } |
---|
| 653 | $this->assertEquals('\u05d0', $feed->title); |
---|
| 654 | } |
---|
| 655 | |
---|
| 656 | function test_x80_cp857_1 () { |
---|
| 657 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp857.xml'); |
---|
| 658 | try { |
---|
| 659 | $feed = new XML_Feed_Parser($content); |
---|
| 660 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 661 | $this->assertTrue(false); |
---|
| 662 | return; |
---|
| 663 | } |
---|
| 664 | $this->assertEquals('\xc7', $feed->title); |
---|
| 665 | } |
---|
| 666 | |
---|
| 667 | function test_x80_cp860_1 () { |
---|
| 668 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp860.xml'); |
---|
| 669 | try { |
---|
| 670 | $feed = new XML_Feed_Parser($content); |
---|
| 671 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 672 | $this->assertTrue(false); |
---|
| 673 | return; |
---|
| 674 | } |
---|
| 675 | $this->assertEquals('\xc7', $feed->title); |
---|
| 676 | } |
---|
| 677 | |
---|
| 678 | function test_x80_cp861_1 () { |
---|
| 679 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp861.xml'); |
---|
| 680 | try { |
---|
| 681 | $feed = new XML_Feed_Parser($content); |
---|
| 682 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 683 | $this->assertTrue(false); |
---|
| 684 | return; |
---|
| 685 | } |
---|
| 686 | $this->assertEquals('\xc7', $feed->title); |
---|
| 687 | } |
---|
| 688 | |
---|
| 689 | function test_x80_cp862_1 () { |
---|
| 690 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp862.xml'); |
---|
| 691 | try { |
---|
| 692 | $feed = new XML_Feed_Parser($content); |
---|
| 693 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 694 | $this->assertTrue(false); |
---|
| 695 | return; |
---|
| 696 | } |
---|
| 697 | $this->assertEquals('\u05d0', $feed->title); |
---|
| 698 | } |
---|
| 699 | |
---|
| 700 | function test_x80_cp863_1 () { |
---|
| 701 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp863.xml'); |
---|
| 702 | try { |
---|
| 703 | $feed = new XML_Feed_Parser($content); |
---|
| 704 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 705 | $this->assertTrue(false); |
---|
| 706 | return; |
---|
| 707 | } |
---|
| 708 | $this->assertEquals('\xc7', $feed->title); |
---|
| 709 | } |
---|
| 710 | |
---|
| 711 | function test_x80_cp864_1 () { |
---|
| 712 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp864.xml'); |
---|
| 713 | try { |
---|
| 714 | $feed = new XML_Feed_Parser($content); |
---|
| 715 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 716 | $this->assertTrue(false); |
---|
| 717 | return; |
---|
| 718 | } |
---|
| 719 | $this->assertEquals('\xb0', $feed->title); |
---|
| 720 | } |
---|
| 721 | |
---|
| 722 | function test_x80_cp865_1 () { |
---|
| 723 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp865.xml'); |
---|
| 724 | try { |
---|
| 725 | $feed = new XML_Feed_Parser($content); |
---|
| 726 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 727 | $this->assertTrue(false); |
---|
| 728 | return; |
---|
| 729 | } |
---|
| 730 | $this->assertEquals('\xc7', $feed->title); |
---|
| 731 | } |
---|
| 732 | |
---|
| 733 | function test_x80_cp866_1 () { |
---|
| 734 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp866.xml'); |
---|
| 735 | try { |
---|
| 736 | $feed = new XML_Feed_Parser($content); |
---|
| 737 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 738 | $this->assertTrue(false); |
---|
| 739 | return; |
---|
| 740 | } |
---|
| 741 | $this->assertEquals('\u0410', $feed->title); |
---|
| 742 | } |
---|
| 743 | |
---|
| 744 | function test_x80_cp874_1 () { |
---|
| 745 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp874.xml'); |
---|
| 746 | try { |
---|
| 747 | $feed = new XML_Feed_Parser($content); |
---|
| 748 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 749 | $this->assertTrue(false); |
---|
| 750 | return; |
---|
| 751 | } |
---|
| 752 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 753 | } |
---|
| 754 | |
---|
| 755 | function test_x80_cp875_0 () { |
---|
| 756 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp875.xml'); |
---|
| 757 | try { |
---|
| 758 | $feed = new XML_Feed_Parser($content); |
---|
| 759 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 760 | $this->assertTrue(false); |
---|
| 761 | return; |
---|
| 762 | } |
---|
| 763 | $this->assertEquals(, ); |
---|
| 764 | } |
---|
| 765 | |
---|
| 766 | function test_x80_cp_is_1 () { |
---|
| 767 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cp_is.xml'); |
---|
| 768 | try { |
---|
| 769 | $feed = new XML_Feed_Parser($content); |
---|
| 770 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 771 | $this->assertTrue(false); |
---|
| 772 | return; |
---|
| 773 | } |
---|
| 774 | $this->assertEquals('\xc7', $feed->title); |
---|
| 775 | } |
---|
| 776 | |
---|
| 777 | function test_x80_csibm037_0 () { |
---|
| 778 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm037.xml'); |
---|
| 779 | try { |
---|
| 780 | $feed = new XML_Feed_Parser($content); |
---|
| 781 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 782 | $this->assertTrue(false); |
---|
| 783 | return; |
---|
| 784 | } |
---|
| 785 | $this->assertEquals(, ); |
---|
| 786 | } |
---|
| 787 | |
---|
| 788 | function test_x80_csibm500_0 () { |
---|
| 789 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm500.xml'); |
---|
| 790 | try { |
---|
| 791 | $feed = new XML_Feed_Parser($content); |
---|
| 792 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 793 | $this->assertTrue(false); |
---|
| 794 | return; |
---|
| 795 | } |
---|
| 796 | $this->assertEquals(, ); |
---|
| 797 | } |
---|
| 798 | |
---|
| 799 | function test_x80_csibm855_1 () { |
---|
| 800 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm855.xml'); |
---|
| 801 | try { |
---|
| 802 | $feed = new XML_Feed_Parser($content); |
---|
| 803 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 804 | $this->assertTrue(false); |
---|
| 805 | return; |
---|
| 806 | } |
---|
| 807 | $this->assertEquals('\u0452', $feed->title); |
---|
| 808 | } |
---|
| 809 | |
---|
| 810 | function test_x80_csibm857_1 () { |
---|
| 811 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm857.xml'); |
---|
| 812 | try { |
---|
| 813 | $feed = new XML_Feed_Parser($content); |
---|
| 814 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 815 | $this->assertTrue(false); |
---|
| 816 | return; |
---|
| 817 | } |
---|
| 818 | $this->assertEquals('\xc7', $feed->title); |
---|
| 819 | } |
---|
| 820 | |
---|
| 821 | function test_x80_csibm860_1 () { |
---|
| 822 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm860.xml'); |
---|
| 823 | try { |
---|
| 824 | $feed = new XML_Feed_Parser($content); |
---|
| 825 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 826 | $this->assertTrue(false); |
---|
| 827 | return; |
---|
| 828 | } |
---|
| 829 | $this->assertEquals('\xc7', $feed->title); |
---|
| 830 | } |
---|
| 831 | |
---|
| 832 | function test_x80_csibm861_1 () { |
---|
| 833 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm861.xml'); |
---|
| 834 | try { |
---|
| 835 | $feed = new XML_Feed_Parser($content); |
---|
| 836 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 837 | $this->assertTrue(false); |
---|
| 838 | return; |
---|
| 839 | } |
---|
| 840 | $this->assertEquals('\xc7', $feed->title); |
---|
| 841 | } |
---|
| 842 | |
---|
| 843 | function test_x80_csibm863_1 () { |
---|
| 844 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm863.xml'); |
---|
| 845 | try { |
---|
| 846 | $feed = new XML_Feed_Parser($content); |
---|
| 847 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 848 | $this->assertTrue(false); |
---|
| 849 | return; |
---|
| 850 | } |
---|
| 851 | $this->assertEquals('\xc7', $feed->title); |
---|
| 852 | } |
---|
| 853 | |
---|
| 854 | function test_x80_csibm864_1 () { |
---|
| 855 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm864.xml'); |
---|
| 856 | try { |
---|
| 857 | $feed = new XML_Feed_Parser($content); |
---|
| 858 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 859 | $this->assertTrue(false); |
---|
| 860 | return; |
---|
| 861 | } |
---|
| 862 | $this->assertEquals('\xb0', $feed->title); |
---|
| 863 | } |
---|
| 864 | |
---|
| 865 | function test_x80_csibm865_1 () { |
---|
| 866 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm865.xml'); |
---|
| 867 | try { |
---|
| 868 | $feed = new XML_Feed_Parser($content); |
---|
| 869 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 870 | $this->assertTrue(false); |
---|
| 871 | return; |
---|
| 872 | } |
---|
| 873 | $this->assertEquals('\xc7', $feed->title); |
---|
| 874 | } |
---|
| 875 | |
---|
| 876 | function test_x80_csibm866_1 () { |
---|
| 877 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csibm866.xml'); |
---|
| 878 | try { |
---|
| 879 | $feed = new XML_Feed_Parser($content); |
---|
| 880 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 881 | $this->assertTrue(false); |
---|
| 882 | return; |
---|
| 883 | } |
---|
| 884 | $this->assertEquals('\u0410', $feed->title); |
---|
| 885 | } |
---|
| 886 | |
---|
| 887 | function test_x80_cskoi8r_1 () { |
---|
| 888 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cskoi8r.xml'); |
---|
| 889 | try { |
---|
| 890 | $feed = new XML_Feed_Parser($content); |
---|
| 891 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 892 | $this->assertTrue(false); |
---|
| 893 | return; |
---|
| 894 | } |
---|
| 895 | $this->assertEquals('\u2500', $feed->title); |
---|
| 896 | } |
---|
| 897 | |
---|
| 898 | function test_x80_csmacintosh_1 () { |
---|
| 899 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_csmacintosh.xml'); |
---|
| 900 | try { |
---|
| 901 | $feed = new XML_Feed_Parser($content); |
---|
| 902 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 903 | $this->assertTrue(false); |
---|
| 904 | return; |
---|
| 905 | } |
---|
| 906 | $this->assertEquals('\xc4', $feed->title); |
---|
| 907 | } |
---|
| 908 | |
---|
| 909 | function test_x80_cspc775baltic_1 () { |
---|
| 910 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cspc775baltic.xml'); |
---|
| 911 | try { |
---|
| 912 | $feed = new XML_Feed_Parser($content); |
---|
| 913 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 914 | $this->assertTrue(false); |
---|
| 915 | return; |
---|
| 916 | } |
---|
| 917 | $this->assertEquals('\u0106', $feed->title); |
---|
| 918 | } |
---|
| 919 | |
---|
| 920 | function test_x80_cspc850multilingual_1 () { |
---|
| 921 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cspc850multilingual.xml'); |
---|
| 922 | try { |
---|
| 923 | $feed = new XML_Feed_Parser($content); |
---|
| 924 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 925 | $this->assertTrue(false); |
---|
| 926 | return; |
---|
| 927 | } |
---|
| 928 | $this->assertEquals('\xc7', $feed->title); |
---|
| 929 | } |
---|
| 930 | |
---|
| 931 | function test_x80_cspc862latinhebrew_1 () { |
---|
| 932 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cspc862latinhebrew.xml'); |
---|
| 933 | try { |
---|
| 934 | $feed = new XML_Feed_Parser($content); |
---|
| 935 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 936 | $this->assertTrue(false); |
---|
| 937 | return; |
---|
| 938 | } |
---|
| 939 | $this->assertEquals('\u05d0', $feed->title); |
---|
| 940 | } |
---|
| 941 | |
---|
| 942 | function test_x80_cspc8codepage437_1 () { |
---|
| 943 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cspc8codepage437.xml'); |
---|
| 944 | try { |
---|
| 945 | $feed = new XML_Feed_Parser($content); |
---|
| 946 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 947 | $this->assertTrue(false); |
---|
| 948 | return; |
---|
| 949 | } |
---|
| 950 | $this->assertEquals('\xc7', $feed->title); |
---|
| 951 | } |
---|
| 952 | |
---|
| 953 | function test_x80_cspcp852_1 () { |
---|
| 954 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_cspcp852.xml'); |
---|
| 955 | try { |
---|
| 956 | $feed = new XML_Feed_Parser($content); |
---|
| 957 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 958 | $this->assertTrue(false); |
---|
| 959 | return; |
---|
| 960 | } |
---|
| 961 | $this->assertEquals('\xc7', $feed->title); |
---|
| 962 | } |
---|
| 963 | |
---|
| 964 | function test_x80_dbcs_1 () { |
---|
| 965 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_dbcs.xml'); |
---|
| 966 | try { |
---|
| 967 | $feed = new XML_Feed_Parser($content); |
---|
| 968 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 969 | $this->assertTrue(false); |
---|
| 970 | return; |
---|
| 971 | } |
---|
| 972 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 973 | } |
---|
| 974 | |
---|
| 975 | function test_x80_ebcdic-cp-be_0 () { |
---|
| 976 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic-cp-be.xml'); |
---|
| 977 | try { |
---|
| 978 | $feed = new XML_Feed_Parser($content); |
---|
| 979 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 980 | $this->assertTrue(false); |
---|
| 981 | return; |
---|
| 982 | } |
---|
| 983 | $this->assertEquals(, ); |
---|
| 984 | } |
---|
| 985 | |
---|
| 986 | function test_x80_ebcdic-cp-ca_0 () { |
---|
| 987 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic-cp-ca.xml'); |
---|
| 988 | try { |
---|
| 989 | $feed = new XML_Feed_Parser($content); |
---|
| 990 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 991 | $this->assertTrue(false); |
---|
| 992 | return; |
---|
| 993 | } |
---|
| 994 | $this->assertEquals(, ); |
---|
| 995 | } |
---|
| 996 | |
---|
| 997 | function test_x80_ebcdic-cp-ch_0 () { |
---|
| 998 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic-cp-ch.xml'); |
---|
| 999 | try { |
---|
| 1000 | $feed = new XML_Feed_Parser($content); |
---|
| 1001 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1002 | $this->assertTrue(false); |
---|
| 1003 | return; |
---|
| 1004 | } |
---|
| 1005 | $this->assertEquals(, ); |
---|
| 1006 | } |
---|
| 1007 | |
---|
| 1008 | function test_x80_ebcdic-cp-nl_0 () { |
---|
| 1009 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic-cp-nl.xml'); |
---|
| 1010 | try { |
---|
| 1011 | $feed = new XML_Feed_Parser($content); |
---|
| 1012 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1013 | $this->assertTrue(false); |
---|
| 1014 | return; |
---|
| 1015 | } |
---|
| 1016 | $this->assertEquals(, ); |
---|
| 1017 | } |
---|
| 1018 | |
---|
| 1019 | function test_x80_ebcdic-cp-us_0 () { |
---|
| 1020 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic-cp-us.xml'); |
---|
| 1021 | try { |
---|
| 1022 | $feed = new XML_Feed_Parser($content); |
---|
| 1023 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1024 | $this->assertTrue(false); |
---|
| 1025 | return; |
---|
| 1026 | } |
---|
| 1027 | $this->assertEquals(, ); |
---|
| 1028 | } |
---|
| 1029 | |
---|
| 1030 | function test_x80_ebcdic-cp-wt_0 () { |
---|
| 1031 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic-cp-wt.xml'); |
---|
| 1032 | try { |
---|
| 1033 | $feed = new XML_Feed_Parser($content); |
---|
| 1034 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1035 | $this->assertTrue(false); |
---|
| 1036 | return; |
---|
| 1037 | } |
---|
| 1038 | $this->assertEquals(, ); |
---|
| 1039 | } |
---|
| 1040 | |
---|
| 1041 | function test_x80_ebcdic_cp_be_0 () { |
---|
| 1042 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic_cp_be.xml'); |
---|
| 1043 | try { |
---|
| 1044 | $feed = new XML_Feed_Parser($content); |
---|
| 1045 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1046 | $this->assertTrue(false); |
---|
| 1047 | return; |
---|
| 1048 | } |
---|
| 1049 | $this->assertEquals(, ); |
---|
| 1050 | } |
---|
| 1051 | |
---|
| 1052 | function test_x80_ebcdic_cp_ca_0 () { |
---|
| 1053 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic_cp_ca.xml'); |
---|
| 1054 | try { |
---|
| 1055 | $feed = new XML_Feed_Parser($content); |
---|
| 1056 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1057 | $this->assertTrue(false); |
---|
| 1058 | return; |
---|
| 1059 | } |
---|
| 1060 | $this->assertEquals(, ); |
---|
| 1061 | } |
---|
| 1062 | |
---|
| 1063 | function test_x80_ebcdic_cp_ch_0 () { |
---|
| 1064 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic_cp_ch.xml'); |
---|
| 1065 | try { |
---|
| 1066 | $feed = new XML_Feed_Parser($content); |
---|
| 1067 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1068 | $this->assertTrue(false); |
---|
| 1069 | return; |
---|
| 1070 | } |
---|
| 1071 | $this->assertEquals(, ); |
---|
| 1072 | } |
---|
| 1073 | |
---|
| 1074 | function test_x80_ebcdic_cp_nl_0 () { |
---|
| 1075 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic_cp_nl.xml'); |
---|
| 1076 | try { |
---|
| 1077 | $feed = new XML_Feed_Parser($content); |
---|
| 1078 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1079 | $this->assertTrue(false); |
---|
| 1080 | return; |
---|
| 1081 | } |
---|
| 1082 | $this->assertEquals(, ); |
---|
| 1083 | } |
---|
| 1084 | |
---|
| 1085 | function test_x80_ebcdic_cp_us_0 () { |
---|
| 1086 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic_cp_us.xml'); |
---|
| 1087 | try { |
---|
| 1088 | $feed = new XML_Feed_Parser($content); |
---|
| 1089 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1090 | $this->assertTrue(false); |
---|
| 1091 | return; |
---|
| 1092 | } |
---|
| 1093 | $this->assertEquals(, ); |
---|
| 1094 | } |
---|
| 1095 | |
---|
| 1096 | function test_x80_ebcdic_cp_wt_0 () { |
---|
| 1097 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ebcdic_cp_wt.xml'); |
---|
| 1098 | try { |
---|
| 1099 | $feed = new XML_Feed_Parser($content); |
---|
| 1100 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1101 | $this->assertTrue(false); |
---|
| 1102 | return; |
---|
| 1103 | } |
---|
| 1104 | $this->assertEquals(, ); |
---|
| 1105 | } |
---|
| 1106 | |
---|
| 1107 | function test_x80_ibm037_0 () { |
---|
| 1108 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm037.xml'); |
---|
| 1109 | try { |
---|
| 1110 | $feed = new XML_Feed_Parser($content); |
---|
| 1111 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1112 | $this->assertTrue(false); |
---|
| 1113 | return; |
---|
| 1114 | } |
---|
| 1115 | $this->assertEquals(, ); |
---|
| 1116 | } |
---|
| 1117 | |
---|
| 1118 | function test_x80_ibm039_0 () { |
---|
| 1119 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm039.xml'); |
---|
| 1120 | try { |
---|
| 1121 | $feed = new XML_Feed_Parser($content); |
---|
| 1122 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1123 | $this->assertTrue(false); |
---|
| 1124 | return; |
---|
| 1125 | } |
---|
| 1126 | $this->assertEquals(, ); |
---|
| 1127 | } |
---|
| 1128 | |
---|
| 1129 | function test_x80_ibm1140_0 () { |
---|
| 1130 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm1140.xml'); |
---|
| 1131 | try { |
---|
| 1132 | $feed = new XML_Feed_Parser($content); |
---|
| 1133 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1134 | $this->assertTrue(false); |
---|
| 1135 | return; |
---|
| 1136 | } |
---|
| 1137 | $this->assertEquals(, ); |
---|
| 1138 | } |
---|
| 1139 | |
---|
| 1140 | function test_x80_ibm437_1 () { |
---|
| 1141 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm437.xml'); |
---|
| 1142 | try { |
---|
| 1143 | $feed = new XML_Feed_Parser($content); |
---|
| 1144 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1145 | $this->assertTrue(false); |
---|
| 1146 | return; |
---|
| 1147 | } |
---|
| 1148 | $this->assertEquals('\xc7', $feed->title); |
---|
| 1149 | } |
---|
| 1150 | |
---|
| 1151 | function test_x80_ibm500_0 () { |
---|
| 1152 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm500.xml'); |
---|
| 1153 | try { |
---|
| 1154 | $feed = new XML_Feed_Parser($content); |
---|
| 1155 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1156 | $this->assertTrue(false); |
---|
| 1157 | return; |
---|
| 1158 | } |
---|
| 1159 | $this->assertEquals(, ); |
---|
| 1160 | } |
---|
| 1161 | |
---|
| 1162 | function test_x80_ibm775_1 () { |
---|
| 1163 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm775.xml'); |
---|
| 1164 | try { |
---|
| 1165 | $feed = new XML_Feed_Parser($content); |
---|
| 1166 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1167 | $this->assertTrue(false); |
---|
| 1168 | return; |
---|
| 1169 | } |
---|
| 1170 | $this->assertEquals('\u0106', $feed->title); |
---|
| 1171 | } |
---|
| 1172 | |
---|
| 1173 | function test_x80_ibm850_1 () { |
---|
| 1174 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm850.xml'); |
---|
| 1175 | try { |
---|
| 1176 | $feed = new XML_Feed_Parser($content); |
---|
| 1177 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1178 | $this->assertTrue(false); |
---|
| 1179 | return; |
---|
| 1180 | } |
---|
| 1181 | $this->assertEquals('\xc7', $feed->title); |
---|
| 1182 | } |
---|
| 1183 | |
---|
| 1184 | function test_x80_ibm852_1 () { |
---|
| 1185 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm852.xml'); |
---|
| 1186 | try { |
---|
| 1187 | $feed = new XML_Feed_Parser($content); |
---|
| 1188 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1189 | $this->assertTrue(false); |
---|
| 1190 | return; |
---|
| 1191 | } |
---|
| 1192 | $this->assertEquals('\xc7', $feed->title); |
---|
| 1193 | } |
---|
| 1194 | |
---|
| 1195 | function test_x80_ibm855_1 () { |
---|
| 1196 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm855.xml'); |
---|
| 1197 | try { |
---|
| 1198 | $feed = new XML_Feed_Parser($content); |
---|
| 1199 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1200 | $this->assertTrue(false); |
---|
| 1201 | return; |
---|
| 1202 | } |
---|
| 1203 | $this->assertEquals('\u0452', $feed->title); |
---|
| 1204 | } |
---|
| 1205 | |
---|
| 1206 | function test_x80_ibm857_1 () { |
---|
| 1207 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm857.xml'); |
---|
| 1208 | try { |
---|
| 1209 | $feed = new XML_Feed_Parser($content); |
---|
| 1210 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1211 | $this->assertTrue(false); |
---|
| 1212 | return; |
---|
| 1213 | } |
---|
| 1214 | $this->assertEquals('\xc7', $feed->title); |
---|
| 1215 | } |
---|
| 1216 | |
---|
| 1217 | function test_x80_ibm860_1 () { |
---|
| 1218 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm860.xml'); |
---|
| 1219 | try { |
---|
| 1220 | $feed = new XML_Feed_Parser($content); |
---|
| 1221 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1222 | $this->assertTrue(false); |
---|
| 1223 | return; |
---|
| 1224 | } |
---|
| 1225 | $this->assertEquals('\xc7', $feed->title); |
---|
| 1226 | } |
---|
| 1227 | |
---|
| 1228 | function test_x80_ibm861_1 () { |
---|
| 1229 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm861.xml'); |
---|
| 1230 | try { |
---|
| 1231 | $feed = new XML_Feed_Parser($content); |
---|
| 1232 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1233 | $this->assertTrue(false); |
---|
| 1234 | return; |
---|
| 1235 | } |
---|
| 1236 | $this->assertEquals('\xc7', $feed->title); |
---|
| 1237 | } |
---|
| 1238 | |
---|
| 1239 | function test_x80_ibm862_1 () { |
---|
| 1240 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm862.xml'); |
---|
| 1241 | try { |
---|
| 1242 | $feed = new XML_Feed_Parser($content); |
---|
| 1243 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1244 | $this->assertTrue(false); |
---|
| 1245 | return; |
---|
| 1246 | } |
---|
| 1247 | $this->assertEquals('\u05d0', $feed->title); |
---|
| 1248 | } |
---|
| 1249 | |
---|
| 1250 | function test_x80_ibm863_1 () { |
---|
| 1251 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm863.xml'); |
---|
| 1252 | try { |
---|
| 1253 | $feed = new XML_Feed_Parser($content); |
---|
| 1254 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1255 | $this->assertTrue(false); |
---|
| 1256 | return; |
---|
| 1257 | } |
---|
| 1258 | $this->assertEquals('\xc7', $feed->title); |
---|
| 1259 | } |
---|
| 1260 | |
---|
| 1261 | function test_x80_ibm864_1 () { |
---|
| 1262 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm864.xml'); |
---|
| 1263 | try { |
---|
| 1264 | $feed = new XML_Feed_Parser($content); |
---|
| 1265 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1266 | $this->assertTrue(false); |
---|
| 1267 | return; |
---|
| 1268 | } |
---|
| 1269 | $this->assertEquals('\xb0', $feed->title); |
---|
| 1270 | } |
---|
| 1271 | |
---|
| 1272 | function test_x80_ibm865_1 () { |
---|
| 1273 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm865.xml'); |
---|
| 1274 | try { |
---|
| 1275 | $feed = new XML_Feed_Parser($content); |
---|
| 1276 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1277 | $this->assertTrue(false); |
---|
| 1278 | return; |
---|
| 1279 | } |
---|
| 1280 | $this->assertEquals('\xc7', $feed->title); |
---|
| 1281 | } |
---|
| 1282 | |
---|
| 1283 | function test_x80_ibm866_1 () { |
---|
| 1284 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ibm866.xml'); |
---|
| 1285 | try { |
---|
| 1286 | $feed = new XML_Feed_Parser($content); |
---|
| 1287 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1288 | $this->assertTrue(false); |
---|
| 1289 | return; |
---|
| 1290 | } |
---|
| 1291 | $this->assertEquals('\u0410', $feed->title); |
---|
| 1292 | } |
---|
| 1293 | |
---|
| 1294 | function test_x80_koi8-r_1 () { |
---|
| 1295 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_koi8-r.xml'); |
---|
| 1296 | try { |
---|
| 1297 | $feed = new XML_Feed_Parser($content); |
---|
| 1298 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1299 | $this->assertTrue(false); |
---|
| 1300 | return; |
---|
| 1301 | } |
---|
| 1302 | $this->assertEquals('\u2500', $feed->title); |
---|
| 1303 | } |
---|
| 1304 | |
---|
| 1305 | function test_x80_koi8-t_1 () { |
---|
| 1306 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_koi8-t.xml'); |
---|
| 1307 | try { |
---|
| 1308 | $feed = new XML_Feed_Parser($content); |
---|
| 1309 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1310 | $this->assertTrue(false); |
---|
| 1311 | return; |
---|
| 1312 | } |
---|
| 1313 | $this->assertEquals('\u049b', $feed->title); |
---|
| 1314 | } |
---|
| 1315 | |
---|
| 1316 | function test_x80_koi8-u_1 () { |
---|
| 1317 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_koi8-u.xml'); |
---|
| 1318 | try { |
---|
| 1319 | $feed = new XML_Feed_Parser($content); |
---|
| 1320 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1321 | $this->assertTrue(false); |
---|
| 1322 | return; |
---|
| 1323 | } |
---|
| 1324 | $this->assertEquals('\u2500', $feed->title); |
---|
| 1325 | } |
---|
| 1326 | |
---|
| 1327 | function test_x80_mac-cyrillic_1 () { |
---|
| 1328 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_mac-cyrillic.xml'); |
---|
| 1329 | try { |
---|
| 1330 | $feed = new XML_Feed_Parser($content); |
---|
| 1331 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1332 | $this->assertTrue(false); |
---|
| 1333 | return; |
---|
| 1334 | } |
---|
| 1335 | $this->assertEquals('\u0410', $feed->title); |
---|
| 1336 | } |
---|
| 1337 | |
---|
| 1338 | function test_x80_mac_1 () { |
---|
| 1339 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_mac.xml'); |
---|
| 1340 | try { |
---|
| 1341 | $feed = new XML_Feed_Parser($content); |
---|
| 1342 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1343 | $this->assertTrue(false); |
---|
| 1344 | return; |
---|
| 1345 | } |
---|
| 1346 | $this->assertEquals('\xc4', $feed->title); |
---|
| 1347 | } |
---|
| 1348 | |
---|
| 1349 | function test_x80_maccentraleurope_1 () { |
---|
| 1350 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_maccentraleurope.xml'); |
---|
| 1351 | try { |
---|
| 1352 | $feed = new XML_Feed_Parser($content); |
---|
| 1353 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1354 | $this->assertTrue(false); |
---|
| 1355 | return; |
---|
| 1356 | } |
---|
| 1357 | $this->assertEquals('\xc4', $feed->title); |
---|
| 1358 | } |
---|
| 1359 | |
---|
| 1360 | function test_x80_maccyrillic_1 () { |
---|
| 1361 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_maccyrillic.xml'); |
---|
| 1362 | try { |
---|
| 1363 | $feed = new XML_Feed_Parser($content); |
---|
| 1364 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1365 | $this->assertTrue(false); |
---|
| 1366 | return; |
---|
| 1367 | } |
---|
| 1368 | $this->assertEquals('\u0410', $feed->title); |
---|
| 1369 | } |
---|
| 1370 | |
---|
| 1371 | function test_x80_macgreek_1 () { |
---|
| 1372 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_macgreek.xml'); |
---|
| 1373 | try { |
---|
| 1374 | $feed = new XML_Feed_Parser($content); |
---|
| 1375 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1376 | $this->assertTrue(false); |
---|
| 1377 | return; |
---|
| 1378 | } |
---|
| 1379 | $this->assertEquals('\xc4', $feed->title); |
---|
| 1380 | } |
---|
| 1381 | |
---|
| 1382 | function test_x80_maciceland_1 () { |
---|
| 1383 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_maciceland.xml'); |
---|
| 1384 | try { |
---|
| 1385 | $feed = new XML_Feed_Parser($content); |
---|
| 1386 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1387 | $this->assertTrue(false); |
---|
| 1388 | return; |
---|
| 1389 | } |
---|
| 1390 | $this->assertEquals('\xc4', $feed->title); |
---|
| 1391 | } |
---|
| 1392 | |
---|
| 1393 | function test_x80_macintosh_1 () { |
---|
| 1394 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_macintosh.xml'); |
---|
| 1395 | try { |
---|
| 1396 | $feed = new XML_Feed_Parser($content); |
---|
| 1397 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1398 | $this->assertTrue(false); |
---|
| 1399 | return; |
---|
| 1400 | } |
---|
| 1401 | $this->assertEquals('\xc4', $feed->title); |
---|
| 1402 | } |
---|
| 1403 | |
---|
| 1404 | function test_x80_maclatin2_1 () { |
---|
| 1405 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_maclatin2.xml'); |
---|
| 1406 | try { |
---|
| 1407 | $feed = new XML_Feed_Parser($content); |
---|
| 1408 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1409 | $this->assertTrue(false); |
---|
| 1410 | return; |
---|
| 1411 | } |
---|
| 1412 | $this->assertEquals('\xc4', $feed->title); |
---|
| 1413 | } |
---|
| 1414 | |
---|
| 1415 | function test_x80_macroman_1 () { |
---|
| 1416 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_macroman.xml'); |
---|
| 1417 | try { |
---|
| 1418 | $feed = new XML_Feed_Parser($content); |
---|
| 1419 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1420 | $this->assertTrue(false); |
---|
| 1421 | return; |
---|
| 1422 | } |
---|
| 1423 | $this->assertEquals('\xc4', $feed->title); |
---|
| 1424 | } |
---|
| 1425 | |
---|
| 1426 | function test_x80_macturkish_1 () { |
---|
| 1427 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_macturkish.xml'); |
---|
| 1428 | try { |
---|
| 1429 | $feed = new XML_Feed_Parser($content); |
---|
| 1430 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1431 | $this->assertTrue(false); |
---|
| 1432 | return; |
---|
| 1433 | } |
---|
| 1434 | $this->assertEquals('\xc4', $feed->title); |
---|
| 1435 | } |
---|
| 1436 | |
---|
| 1437 | function test_x80_ms-ansi_1 () { |
---|
| 1438 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-ansi.xml'); |
---|
| 1439 | try { |
---|
| 1440 | $feed = new XML_Feed_Parser($content); |
---|
| 1441 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1442 | $this->assertTrue(false); |
---|
| 1443 | return; |
---|
| 1444 | } |
---|
| 1445 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1446 | } |
---|
| 1447 | |
---|
| 1448 | function test_x80_ms-arab_1 () { |
---|
| 1449 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-arab.xml'); |
---|
| 1450 | try { |
---|
| 1451 | $feed = new XML_Feed_Parser($content); |
---|
| 1452 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1453 | $this->assertTrue(false); |
---|
| 1454 | return; |
---|
| 1455 | } |
---|
| 1456 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1457 | } |
---|
| 1458 | |
---|
| 1459 | function test_x80_ms-cyrl_1 () { |
---|
| 1460 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-cyrl.xml'); |
---|
| 1461 | try { |
---|
| 1462 | $feed = new XML_Feed_Parser($content); |
---|
| 1463 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1464 | $this->assertTrue(false); |
---|
| 1465 | return; |
---|
| 1466 | } |
---|
| 1467 | $this->assertEquals('\u0402', $feed->title); |
---|
| 1468 | } |
---|
| 1469 | |
---|
| 1470 | function test_x80_ms-ee_1 () { |
---|
| 1471 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-ee.xml'); |
---|
| 1472 | try { |
---|
| 1473 | $feed = new XML_Feed_Parser($content); |
---|
| 1474 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1475 | $this->assertTrue(false); |
---|
| 1476 | return; |
---|
| 1477 | } |
---|
| 1478 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1479 | } |
---|
| 1480 | |
---|
| 1481 | function test_x80_ms-greek_1 () { |
---|
| 1482 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-greek.xml'); |
---|
| 1483 | try { |
---|
| 1484 | $feed = new XML_Feed_Parser($content); |
---|
| 1485 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1486 | $this->assertTrue(false); |
---|
| 1487 | return; |
---|
| 1488 | } |
---|
| 1489 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1490 | } |
---|
| 1491 | |
---|
| 1492 | function test_x80_ms-hebr_1 () { |
---|
| 1493 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-hebr.xml'); |
---|
| 1494 | try { |
---|
| 1495 | $feed = new XML_Feed_Parser($content); |
---|
| 1496 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1497 | $this->assertTrue(false); |
---|
| 1498 | return; |
---|
| 1499 | } |
---|
| 1500 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1501 | } |
---|
| 1502 | |
---|
| 1503 | function test_x80_ms-turk_1 () { |
---|
| 1504 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_ms-turk.xml'); |
---|
| 1505 | try { |
---|
| 1506 | $feed = new XML_Feed_Parser($content); |
---|
| 1507 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1508 | $this->assertTrue(false); |
---|
| 1509 | return; |
---|
| 1510 | } |
---|
| 1511 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1512 | } |
---|
| 1513 | |
---|
| 1514 | function test_x80_tcvn-5712_1 () { |
---|
| 1515 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_tcvn-5712.xml'); |
---|
| 1516 | try { |
---|
| 1517 | $feed = new XML_Feed_Parser($content); |
---|
| 1518 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1519 | $this->assertTrue(false); |
---|
| 1520 | return; |
---|
| 1521 | } |
---|
| 1522 | $this->assertEquals('\xc0', $feed->title); |
---|
| 1523 | } |
---|
| 1524 | |
---|
| 1525 | function test_x80_tcvn_1 () { |
---|
| 1526 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_tcvn.xml'); |
---|
| 1527 | try { |
---|
| 1528 | $feed = new XML_Feed_Parser($content); |
---|
| 1529 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1530 | $this->assertTrue(false); |
---|
| 1531 | return; |
---|
| 1532 | } |
---|
| 1533 | $this->assertEquals('\xc0', $feed->title); |
---|
| 1534 | } |
---|
| 1535 | |
---|
| 1536 | function test_x80_tcvn5712-1_1 () { |
---|
| 1537 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_tcvn5712-1.xml'); |
---|
| 1538 | try { |
---|
| 1539 | $feed = new XML_Feed_Parser($content); |
---|
| 1540 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1541 | $this->assertTrue(false); |
---|
| 1542 | return; |
---|
| 1543 | } |
---|
| 1544 | $this->assertEquals('\xc0', $feed->title); |
---|
| 1545 | } |
---|
| 1546 | |
---|
| 1547 | function test_x80_viscii_1 () { |
---|
| 1548 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_viscii.xml'); |
---|
| 1549 | try { |
---|
| 1550 | $feed = new XML_Feed_Parser($content); |
---|
| 1551 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1552 | $this->assertTrue(false); |
---|
| 1553 | return; |
---|
| 1554 | } |
---|
| 1555 | $this->assertEquals('\u1ea0', $feed->title); |
---|
| 1556 | } |
---|
| 1557 | |
---|
| 1558 | function test_x80_winbaltrim_1 () { |
---|
| 1559 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_winbaltrim.xml'); |
---|
| 1560 | try { |
---|
| 1561 | $feed = new XML_Feed_Parser($content); |
---|
| 1562 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1563 | $this->assertTrue(false); |
---|
| 1564 | return; |
---|
| 1565 | } |
---|
| 1566 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1567 | } |
---|
| 1568 | |
---|
| 1569 | function test_x80_windows-1250_1 () { |
---|
| 1570 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1250.xml'); |
---|
| 1571 | try { |
---|
| 1572 | $feed = new XML_Feed_Parser($content); |
---|
| 1573 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1574 | $this->assertTrue(false); |
---|
| 1575 | return; |
---|
| 1576 | } |
---|
| 1577 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1578 | } |
---|
| 1579 | |
---|
| 1580 | function test_x80_windows-1251_1 () { |
---|
| 1581 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1251.xml'); |
---|
| 1582 | try { |
---|
| 1583 | $feed = new XML_Feed_Parser($content); |
---|
| 1584 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1585 | $this->assertTrue(false); |
---|
| 1586 | return; |
---|
| 1587 | } |
---|
| 1588 | $this->assertEquals('\u0402', $feed->title); |
---|
| 1589 | } |
---|
| 1590 | |
---|
| 1591 | function test_x80_windows-1252_1 () { |
---|
| 1592 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1252.xml'); |
---|
| 1593 | try { |
---|
| 1594 | $feed = new XML_Feed_Parser($content); |
---|
| 1595 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1596 | $this->assertTrue(false); |
---|
| 1597 | return; |
---|
| 1598 | } |
---|
| 1599 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1600 | } |
---|
| 1601 | |
---|
| 1602 | function test_x80_windows-1253_1 () { |
---|
| 1603 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1253.xml'); |
---|
| 1604 | try { |
---|
| 1605 | $feed = new XML_Feed_Parser($content); |
---|
| 1606 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1607 | $this->assertTrue(false); |
---|
| 1608 | return; |
---|
| 1609 | } |
---|
| 1610 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1611 | } |
---|
| 1612 | |
---|
| 1613 | function test_x80_windows-1254_1 () { |
---|
| 1614 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1254.xml'); |
---|
| 1615 | try { |
---|
| 1616 | $feed = new XML_Feed_Parser($content); |
---|
| 1617 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1618 | $this->assertTrue(false); |
---|
| 1619 | return; |
---|
| 1620 | } |
---|
| 1621 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1622 | } |
---|
| 1623 | |
---|
| 1624 | function test_x80_windows-1255_1 () { |
---|
| 1625 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1255.xml'); |
---|
| 1626 | try { |
---|
| 1627 | $feed = new XML_Feed_Parser($content); |
---|
| 1628 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1629 | $this->assertTrue(false); |
---|
| 1630 | return; |
---|
| 1631 | } |
---|
| 1632 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1633 | } |
---|
| 1634 | |
---|
| 1635 | function test_x80_windows-1256_1 () { |
---|
| 1636 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1256.xml'); |
---|
| 1637 | try { |
---|
| 1638 | $feed = new XML_Feed_Parser($content); |
---|
| 1639 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1640 | $this->assertTrue(false); |
---|
| 1641 | return; |
---|
| 1642 | } |
---|
| 1643 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1644 | } |
---|
| 1645 | |
---|
| 1646 | function test_x80_windows-1257_1 () { |
---|
| 1647 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1257.xml'); |
---|
| 1648 | try { |
---|
| 1649 | $feed = new XML_Feed_Parser($content); |
---|
| 1650 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1651 | $this->assertTrue(false); |
---|
| 1652 | return; |
---|
| 1653 | } |
---|
| 1654 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1655 | } |
---|
| 1656 | |
---|
| 1657 | function test_x80_windows-1258_1 () { |
---|
| 1658 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows-1258.xml'); |
---|
| 1659 | try { |
---|
| 1660 | $feed = new XML_Feed_Parser($content); |
---|
| 1661 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1662 | $this->assertTrue(false); |
---|
| 1663 | return; |
---|
| 1664 | } |
---|
| 1665 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1666 | } |
---|
| 1667 | |
---|
| 1668 | function test_x80_windows_1250_1 () { |
---|
| 1669 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows_1250.xml'); |
---|
| 1670 | try { |
---|
| 1671 | $feed = new XML_Feed_Parser($content); |
---|
| 1672 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1673 | $this->assertTrue(false); |
---|
| 1674 | return; |
---|
| 1675 | } |
---|
| 1676 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1677 | } |
---|
| 1678 | |
---|
| 1679 | function test_x80_windows_1251_1 () { |
---|
| 1680 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows_1251.xml'); |
---|
| 1681 | try { |
---|
| 1682 | $feed = new XML_Feed_Parser($content); |
---|
| 1683 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1684 | $this->assertTrue(false); |
---|
| 1685 | return; |
---|
| 1686 | } |
---|
| 1687 | $this->assertEquals('\u0402', $feed->title); |
---|
| 1688 | } |
---|
| 1689 | |
---|
| 1690 | function test_x80_windows_1252_1 () { |
---|
| 1691 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows_1252.xml'); |
---|
| 1692 | try { |
---|
| 1693 | $feed = new XML_Feed_Parser($content); |
---|
| 1694 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1695 | $this->assertTrue(false); |
---|
| 1696 | return; |
---|
| 1697 | } |
---|
| 1698 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1699 | } |
---|
| 1700 | |
---|
| 1701 | function test_x80_windows_1253_1 () { |
---|
| 1702 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows_1253.xml'); |
---|
| 1703 | try { |
---|
| 1704 | $feed = new XML_Feed_Parser($content); |
---|
| 1705 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1706 | $this->assertTrue(false); |
---|
| 1707 | return; |
---|
| 1708 | } |
---|
| 1709 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1710 | } |
---|
| 1711 | |
---|
| 1712 | function test_x80_windows_1254_1 () { |
---|
| 1713 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows_1254.xml'); |
---|
| 1714 | try { |
---|
| 1715 | $feed = new XML_Feed_Parser($content); |
---|
| 1716 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1717 | $this->assertTrue(false); |
---|
| 1718 | return; |
---|
| 1719 | } |
---|
| 1720 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1721 | } |
---|
| 1722 | |
---|
| 1723 | function test_x80_windows_1255_1 () { |
---|
| 1724 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows_1255.xml'); |
---|
| 1725 | try { |
---|
| 1726 | $feed = new XML_Feed_Parser($content); |
---|
| 1727 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1728 | $this->assertTrue(false); |
---|
| 1729 | return; |
---|
| 1730 | } |
---|
| 1731 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1732 | } |
---|
| 1733 | |
---|
| 1734 | function test_x80_windows_1256_1 () { |
---|
| 1735 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows_1256.xml'); |
---|
| 1736 | try { |
---|
| 1737 | $feed = new XML_Feed_Parser($content); |
---|
| 1738 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1739 | $this->assertTrue(false); |
---|
| 1740 | return; |
---|
| 1741 | } |
---|
| 1742 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1743 | } |
---|
| 1744 | |
---|
| 1745 | function test_x80_windows_1257_1 () { |
---|
| 1746 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows_1257.xml'); |
---|
| 1747 | try { |
---|
| 1748 | $feed = new XML_Feed_Parser($content); |
---|
| 1749 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1750 | $this->assertTrue(false); |
---|
| 1751 | return; |
---|
| 1752 | } |
---|
| 1753 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1754 | } |
---|
| 1755 | |
---|
| 1756 | function test_x80_windows_1258_1 () { |
---|
| 1757 | $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/encoding/x80_windows_1258.xml'); |
---|
| 1758 | try { |
---|
| 1759 | $feed = new XML_Feed_Parser($content); |
---|
| 1760 | } catch (XML_Feed_Parser_Exception $e) { |
---|
| 1761 | $this->assertTrue(false); |
---|
| 1762 | return; |
---|
| 1763 | } |
---|
| 1764 | $this->assertEquals('\u20ac', $feed->title); |
---|
| 1765 | } |
---|
| 1766 | } |
---|
| 1767 | |
---|
| 1768 | $suite = new PHPUnit_TestSuite('encoding_TestCase'); |
---|
| 1769 | $result = PHPUnit::run($suite, '123'); |
---|
| 1770 | echo $result->toString(); |
---|
| 1771 | |
---|
| 1772 | ?> |
---|