1 |
41cc1b08
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
class who_knows_a_title_from_a_hole_in_the_ground_html_cdata extends SimplePie_First_Item_Title_Test
|
4 |
|
|
{
|
5 |
|
|
function data()
|
6 |
|
|
{
|
7 |
|
|
$this->data =
|
8 |
|
|
'<?xml version="1.0" encoding="utf-8"?>
|
9 |
|
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
10 |
|
|
<id>http://atomtests.philringnalda.com/tests/item/title/html-cdata.atom</id>
|
11 |
|
|
<title>Atom item title html cdata</title>
|
12 |
|
|
<updated>2005-12-18T00:13:00Z</updated>
|
13 |
|
|
<author>
|
14 |
|
|
<name>Phil Ringnalda</name>
|
15 |
|
|
<uri>http://weblog.philringnalda.com/</uri>
|
16 |
|
|
</author>
|
17 |
|
|
<link rel="self" href="http://atomtests.philringnalda.com/tests/item/title/html-cdata.atom"/>
|
18 |
|
|
<entry>
|
19 |
|
|
<id>http://atomtests.philringnalda.com/tests/item/title/html-cdata.atom/1</id>
|
20 |
|
|
<title type="html"><![CDATA[<title>]]></title>
|
21 |
|
|
<updated>2005-12-18T00:13:00Z</updated>
|
22 |
|
|
<summary>An item with a type="html" title consisting of a less-than
|
23 |
|
|
character, the word \'title\' and a greater-than character, where
|
24 |
|
|
the character entity reference for the less-than is escaped by being
|
25 |
|
|
in a CDATA section.</summary>
|
26 |
|
|
<link href="http://atomtests.philringnalda.com/alt/title-title.html"/>
|
27 |
|
|
<category term="item title"/>
|
28 |
|
|
</entry>
|
29 |
|
|
</feed>';
|
30 |
|
|
}
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
function expected()
|
36 |
|
|
{
|
37 |
|
|
|
38 |
|
|
|
39 |
|
|
$this->expected = '<title>';
|
40 |
|
|
}
|
41 |
|
|
}
|
42 |
|
|
|
43 |
|
|
?> |