1
|
<?php
|
2
|
|
3
|
class who_knows_a_title_from_a_hole_in_the_ground_text_entity 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/text-entity.atom</id>
|
11
|
<title>Atom item title text entity</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/text-entity.atom"/>
|
18
|
<entry>
|
19
|
<id>http://atomtests.philringnalda.com/tests/item/title/text-entity.atom/1</id>
|
20
|
<title type="text"><title></title>
|
21
|
<updated>2005-12-18T00:13:00Z</updated>
|
22
|
<summary>An item with a type="text" title consisting of a less-than
|
23
|
character, the word \'title\' and a greater-than character, where the
|
24
|
less-than is escaped with its character entity reference.</summary>
|
25
|
<link href="http://atomtests.philringnalda.com/alt/title-title.html"/>
|
26
|
<category term="item title"/>
|
27
|
</entry>
|
28
|
</feed>';
|
29
|
}
|
30
|
|
31
|
function expected()
|
32
|
{
|
33
|
$this->expected = '<title>';
|
34
|
}
|
35
|
}
|
36
|
|
37
|
?>
|