]> git.mxchange.org Git - friendica.git/blob - simplepie/test/who_knows_a_title_from_a_hole_in_the_ground/xhtml/entity.php
Add simplepie
[friendica.git] / simplepie / test / who_knows_a_title_from_a_hole_in_the_ground / xhtml / entity.php
1 <?php
2
3 class who_knows_a_title_from_a_hole_in_the_ground_xhtml_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/xhtml-entity.atom</id>
11 <title>Atom item title xhtml 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/xhtml-entity.atom"/>
18 <entry>
19   <id>http://atomtests.philringnalda.com/tests/item/title/xhtml-entity.atom/1</id>
20   <title type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">&lt;title></div></title>
21   <updated>2005-12-18T00:13:00Z</updated>
22   <summary>An item with a type="xhtml" title consisting of a less-than 
23 character, the word \'title\' and a greater-than character, where the
24 less-than character 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 = '&lt;title&gt;';
34         }
35 }
36
37 ?>