Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
require_once dirname(dirname(__FILE__)) . '/XML_Feed_Parser_TestCase.php';
4
 
5
class amp_TestCase extends XML_Feed_Parser_Converted_TestCase {
6
 
7
    public function setUp() {
8
        parent::setUp();
9
 
10
        $this->markTestSkipped('The current behaviour of this package is to treat Atom 0.3 as Atom 1.0 and raise a warning.');
11
    }
12
 
13
    function test_amp01_1() {
14
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp01.xml');
15
 
16
        $feed = new XML_Feed_Parser($content);
17
 
18
        $this->assertEquals('&#38;', $feed->getEntryByOffset(0)->title);
19
    }
20
 
21
    function test_amp02_1() {
22
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp02.xml');
23
 
24
        $feed = new XML_Feed_Parser($content);
25
 
26
        $this->assertEquals('&#x26;', $feed->getEntryByOffset(0)->title);
27
    }
28
 
29
    function test_amp03_1() {
30
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp03.xml');
31
 
32
        $feed = new XML_Feed_Parser($content);
33
 
34
        $this->assertEquals('&', $feed->getEntryByOffset(0)->title);
35
    }
36
 
37
    function test_amp04_1() {
38
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp04.xml');
39
 
40
        $feed = new XML_Feed_Parser($content);
41
 
42
        $this->assertEquals('&amp;', $feed->getEntryByOffset(0)->title);
43
    }
44
 
45
    function test_amp05_1() {
46
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp05.xml');
47
 
48
        $feed = new XML_Feed_Parser($content);
49
 
50
        $this->assertEquals('&#38;', $feed->getEntryByOffset(0)->title);
51
    }
52
 
53
    function test_amp06_1() {
54
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp06.xml');
55
 
56
        $feed = new XML_Feed_Parser($content);
57
 
58
        $this->assertEquals('&#x26;', $feed->getEntryByOffset(0)->title);
59
    }
60
 
61
    function test_amp07_1() {
62
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp07.xml');
63
 
64
        $feed = new XML_Feed_Parser($content);
65
 
66
        $this->assertEquals('&', $feed->getEntryByOffset(0)->title);
67
    }
68
 
69
    function test_amp08_1() {
70
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp08.xml');
71
 
72
        $feed = new XML_Feed_Parser($content);
73
 
74
        $this->assertEquals('&amp;', $feed->getEntryByOffset(0)->title);
75
    }
76
 
77
    function test_amp09_1() {
78
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp09.xml');
79
 
80
        $feed = new XML_Feed_Parser($content);
81
 
82
        $this->assertEquals('&#38;', $feed->getEntryByOffset(0)->title);
83
    }
84
 
85
    function test_amp10_1() {
86
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp10.xml');
87
 
88
        $feed = new XML_Feed_Parser($content);
89
 
90
        $this->assertEquals('&#x26;', $feed->getEntryByOffset(0)->title);
91
    }
92
 
93
    function test_amp11_1() {
94
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp11.xml');
95
 
96
        $feed = new XML_Feed_Parser($content);
97
 
98
        $this->assertEquals('&', $feed->getEntryByOffset(0)->title);
99
    }
100
 
101
    function test_amp12_1() {
102
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp12.xml');
103
 
104
        $feed = new XML_Feed_Parser($content);
105
 
106
        $this->assertEquals('&amp;', $feed->getEntryByOffset(0)->title);
107
    }
108
 
109
    function test_amp13_1() {
110
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp13.xml');
111
 
112
        $feed = new XML_Feed_Parser($content);
113
 
114
        $this->assertEquals('<b>&#38;</b>', $feed->getEntryByOffset(0)->title);
115
    }
116
 
117
    function test_amp14_1() {
118
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp14.xml');
119
 
120
        $feed = new XML_Feed_Parser($content);
121
 
122
        $this->assertEquals('<b>&#x26;</b>', $feed->getEntryByOffset(0)->title);
123
    }
124
 
125
    function test_amp15_1() {
126
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp15.xml');
127
 
128
        $feed = new XML_Feed_Parser($content);
129
 
130
        $this->assertEquals('<b>&amp;</b>', $feed->getEntryByOffset(0)->title);
131
    }
132
 
133
    function test_amp16_1() {
134
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp16.xml');
135
 
136
        $feed = new XML_Feed_Parser($content);
137
 
138
        $this->assertEquals('<b>&#38;</b>', $feed->getEntryByOffset(0)->title);
139
    }
140
 
141
    function test_amp17_1() {
142
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp17.xml');
143
 
144
        $feed = new XML_Feed_Parser($content);
145
 
146
        $this->assertEquals('<b>&#x26;</b>', $feed->getEntryByOffset(0)->title);
147
    }
148
 
149
    function test_amp18_1() {
150
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp18.xml');
151
 
152
        $feed = new XML_Feed_Parser($content);
153
 
154
        $this->assertEquals('<b>&amp;</b>', $feed->getEntryByOffset(0)->title);
155
    }
156
 
157
    function test_amp19_1() {
158
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp19.xml');
159
 
160
        $feed = new XML_Feed_Parser($content);
161
 
162
        $this->assertEquals('<b>&#38;</b>', $feed->getEntryByOffset(0)->title);
163
    }
164
 
165
    function test_amp20_1() {
166
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp20.xml');
167
 
168
        $feed = new XML_Feed_Parser($content);
169
 
170
        $this->assertEquals('<b>&#x26;</b>', $feed->getEntryByOffset(0)->title);
171
    }
172
 
173
    function test_amp21_1() {
174
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp21.xml');
175
 
176
        $feed = new XML_Feed_Parser($content);
177
 
178
        $this->assertEquals('<b>&amp;</b>', $feed->getEntryByOffset(0)->title);
179
    }
180
 
181
    function test_amp22_1() {
182
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp22.xml');
183
 
184
        $feed = new XML_Feed_Parser($content);
185
 
186
        $this->assertEquals('<b>&#38;</b>', $feed->getEntryByOffset(0)->title);
187
    }
188
 
189
    function test_amp23_1() {
190
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp23.xml');
191
 
192
        $feed = new XML_Feed_Parser($content);
193
 
194
        $this->assertEquals('<b>&#x26;</b>', $feed->getEntryByOffset(0)->title);
195
    }
196
 
197
    function test_amp24_1() {
198
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp24.xml');
199
 
200
        $feed = new XML_Feed_Parser($content);
201
 
202
        $this->assertEquals('<b>&amp;</b>', $feed->getEntryByOffset(0)->title);
203
    }
204
 
205
    function test_amp25_1() {
206
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp25.xml');
207
 
208
        $feed = new XML_Feed_Parser($content);
209
 
210
        $this->assertEquals('<b>&#38;</b>', $feed->getEntryByOffset(0)->title);
211
    }
212
 
213
    function test_amp26_1() {
214
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp26.xml');
215
 
216
        $feed = new XML_Feed_Parser($content);
217
 
218
        $this->assertEquals('<b>&#x26;</b>', $feed->getEntryByOffset(0)->title);
219
    }
220
 
221
    function test_amp27_1() {
222
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp27.xml');
223
 
224
        $feed = new XML_Feed_Parser($content);
225
 
226
        $this->assertEquals('<b>&amp;</b>', $feed->getEntryByOffset(0)->title);
227
    }
228
 
229
    function test_amp28_1() {
230
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp28.xml');
231
 
232
        $feed = new XML_Feed_Parser($content);
233
 
234
        $this->assertEquals('<b>&#38;</b>', $feed->getEntryByOffset(0)->title);
235
    }
236
 
237
    function test_amp29_1() {
238
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp29.xml');
239
 
240
        $feed = new XML_Feed_Parser($content);
241
 
242
        $this->assertEquals('<b>&#x26;</b>', $feed->getEntryByOffset(0)->title);
243
    }
244
 
245
    function test_amp30_1() {
246
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp30.xml');
247
 
248
        $feed = new XML_Feed_Parser($content);
249
 
250
        $this->assertEquals('<b>&amp;</b>', $feed->getEntryByOffset(0)->title);
251
    }
252
 
253
    function test_amp31_1() {
254
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp31.xml');
255
 
256
        $feed = new XML_Feed_Parser($content);
257
 
258
        $this->assertEquals('<strong>&#38;</strong>', $feed->getEntryByOffset(0)->title);
259
    }
260
 
261
    function test_amp32_1() {
262
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp32.xml');
263
 
264
        $feed = new XML_Feed_Parser($content);
265
 
266
        $this->assertEquals('<strong>&#x26;</strong>', $feed->getEntryByOffset(0)->title);
267
    }
268
 
269
    function test_amp33_1() {
270
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp33.xml');
271
 
272
        $feed = new XML_Feed_Parser($content);
273
 
274
        $this->assertEquals('<strong>&amp;</strong>', $feed->getEntryByOffset(0)->title);
275
    }
276
 
277
    function test_amp34_1() {
278
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp34.xml');
279
 
280
        $feed = new XML_Feed_Parser($content);
281
 
282
        $this->assertEquals('<strong>&#38;</strong>', $feed->getEntryByOffset(0)->title);
283
    }
284
 
285
    function test_amp35_1() {
286
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp35.xml');
287
 
288
        $feed = new XML_Feed_Parser($content);
289
 
290
        $this->assertEquals('<strong>&#x26;</strong>', $feed->getEntryByOffset(0)->title);
291
    }
292
 
293
    function test_amp36_1() {
294
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp36.xml');
295
 
296
        $feed = new XML_Feed_Parser($content);
297
 
298
        $this->assertEquals('<strong>&amp;</strong>', $feed->getEntryByOffset(0)->title);
299
    }
300
 
301
    function test_amp37_1() {
302
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp37.xml');
303
 
304
        $feed = new XML_Feed_Parser($content);
305
 
306
        $this->assertEquals('<strong>&#38;</strong>', $feed->getEntryByOffset(0)->title);
307
    }
308
 
309
    function test_amp38_1() {
310
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp38.xml');
311
 
312
        $feed = new XML_Feed_Parser($content);
313
 
314
        $this->assertEquals('<strong>&#x26;</strong>', $feed->getEntryByOffset(0)->title);
315
    }
316
 
317
    function test_amp39_1() {
318
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp39.xml');
319
 
320
        $feed = new XML_Feed_Parser($content);
321
 
322
        $this->assertEquals('<strong>&amp;</strong>', $feed->getEntryByOffset(0)->title);
323
    }
324
 
325
    function test_amp40_1() {
326
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp40.xml');
327
 
328
        $feed = new XML_Feed_Parser($content);
329
 
330
        $this->assertEquals('<strong>&#38;</strong>', $feed->getEntryByOffset(0)->title);
331
    }
332
 
333
    function test_amp41_1() {
334
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp41.xml');
335
 
336
        $feed = new XML_Feed_Parser($content);
337
 
338
        $this->assertEquals('<strong>&#x26;</strong>', $feed->getEntryByOffset(0)->title);
339
    }
340
 
341
    function test_amp42_1() {
342
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp42.xml');
343
 
344
        $feed = new XML_Feed_Parser($content);
345
 
346
        $this->assertEquals('<strong>&amp;</strong>', $feed->getEntryByOffset(0)->title);
347
    }
348
 
349
    function test_amp43_1() {
350
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp43.xml');
351
 
352
        $feed = new XML_Feed_Parser($content);
353
 
354
        $this->assertEquals('<strong>&#38;</strong>', $feed->getEntryByOffset(0)->title);
355
    }
356
 
357
    function test_amp44_1() {
358
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp44.xml');
359
 
360
        $feed = new XML_Feed_Parser($content);
361
 
362
        $this->assertEquals('<strong>&#x26;</strong>', $feed->getEntryByOffset(0)->title);
363
    }
364
 
365
    function test_amp45_1() {
366
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp45.xml');
367
 
368
        $feed = new XML_Feed_Parser($content);
369
 
370
        $this->assertEquals('<strong>&amp;</strong>', $feed->getEntryByOffset(0)->title);
371
    }
372
 
373
    function test_amp46_1() {
374
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp46.xml');
375
 
376
        $feed = new XML_Feed_Parser($content);
377
 
378
        $this->assertEquals('<strong>&#38;</strong>', $feed->getEntryByOffset(0)->title);
379
    }
380
 
381
    function test_amp47_1() {
382
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp47.xml');
383
 
384
        $feed = new XML_Feed_Parser($content);
385
 
386
        $this->assertEquals('<strong>&#x26;</strong>', $feed->getEntryByOffset(0)->title);
387
    }
388
 
389
    function test_amp48_1() {
390
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp48.xml');
391
 
392
        $feed = new XML_Feed_Parser($content);
393
 
394
        $this->assertEquals('<strong>&amp;</strong>', $feed->getEntryByOffset(0)->title);
395
    }
396
 
397
    function test_amp49_1() {
398
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp49.xml');
399
 
400
        $feed = new XML_Feed_Parser($content);
401
 
402
        $this->assertEquals('&#38;', $feed->getEntryByOffset(0)->title);
403
    }
404
 
405
    function test_amp50_1() {
406
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp50.xml');
407
 
408
        $feed = new XML_Feed_Parser($content);
409
 
410
        $this->assertEquals('&#x26;', $feed->getEntryByOffset(0)->title);
411
    }
412
 
413
    function test_amp51_1() {
414
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp51.xml');
415
 
416
        $feed = new XML_Feed_Parser($content);
417
 
418
        $this->assertEquals('&', $feed->getEntryByOffset(0)->title);
419
    }
420
 
421
    function test_amp52_1() {
422
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp52.xml');
423
 
424
        $feed = new XML_Feed_Parser($content);
425
 
426
        $this->assertEquals('&amp;', $feed->getEntryByOffset(0)->title);
427
    }
428
 
429
    function test_amp53_1() {
430
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp53.xml');
431
 
432
        $feed = new XML_Feed_Parser($content);
433
 
434
        $this->assertEquals('<b>&#38;</b>', $feed->getEntryByOffset(0)->title);
435
    }
436
 
437
    function test_amp54_1() {
438
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp54.xml');
439
 
440
        $feed = new XML_Feed_Parser($content);
441
 
442
        $this->assertEquals('<b>&#x26;</b>', $feed->getEntryByOffset(0)->title);
443
    }
444
 
445
    function test_amp55_1() {
446
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp55.xml');
447
 
448
        $feed = new XML_Feed_Parser($content);
449
 
450
        $this->assertEquals('<b>&amp;</b>', $feed->getEntryByOffset(0)->title);
451
    }
452
 
453
    function test_amp56_1() {
454
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp56.xml');
455
 
456
        $feed = new XML_Feed_Parser($content);
457
 
458
        $this->assertEquals('<strong>&#38;</strong>', $feed->getEntryByOffset(0)->title);
459
    }
460
 
461
    function test_amp57_1() {
462
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp57.xml');
463
 
464
        $feed = new XML_Feed_Parser($content);
465
 
466
        $this->assertEquals('<strong>&#x26;</strong>', $feed->getEntryByOffset(0)->title);
467
    }
468
 
469
    function test_amp58_1() {
470
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp58.xml');
471
 
472
        $feed = new XML_Feed_Parser($content);
473
 
474
        $this->assertEquals('<strong>&amp;</strong>', $feed->getEntryByOffset(0)->title);
475
    }
476
 
477
    function test_amp59_1() {
478
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp59.xml');
479
 
480
        $feed = new XML_Feed_Parser($content);
481
 
482
        $this->assertEquals('<div><b>&amp;</b></div>', $feed->getEntryByOffset(0)->title);
483
    }
484
 
485
    function test_amp60_1() {
486
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp60.xml');
487
 
488
        $feed = new XML_Feed_Parser($content);
489
 
490
        $this->assertEquals('<div><b>&amp;</b></div>', $feed->getEntryByOffset(0)->title);
491
    }
492
 
493
    function test_amp61_1() {
494
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp61.xml');
495
 
496
        $feed = new XML_Feed_Parser($content);
497
 
498
        $this->assertEquals('<div><b>&amp;</b></div>', $feed->getEntryByOffset(0)->title);
499
    }
500
 
501
    function test_amp62_1() {
502
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp62.xml');
503
 
504
        $feed = new XML_Feed_Parser($content);
505
 
506
        $this->assertEquals('<div><strong>&amp;</strong></div>', $feed->getEntryByOffset(0)->title);
507
    }
508
 
509
    function test_amp63_1() {
510
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp63.xml');
511
 
512
        $feed = new XML_Feed_Parser($content);
513
 
514
        $this->assertEquals('<div><strong>&amp;</strong></div>', $feed->getEntryByOffset(0)->title);
515
    }
516
 
517
    function test_amp64_1() {
518
        $content = file_get_contents($this->fp_test_dir . DIRECTORY_SEPARATOR . 'wellformed/amp/amp64.xml');
519
 
520
        $feed = new XML_Feed_Parser($content);
521
 
522
        $this->assertEquals('<div><strong>&amp;</strong></div>', $feed->getEntryByOffset(0)->title);
523
    }
524
}
525
?>