]> git.mxchange.org Git - friendica.git/blob - simplepie/test/who_knows_a_title_from_a_hole_in_the_ground/html/ncr.php
Add simplepie
[friendica.git] / simplepie / test / who_knows_a_title_from_a_hole_in_the_ground / html / ncr.php
1 <?php
2
3 class who_knows_a_title_from_a_hole_in_the_ground_html_ncr 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-ncr.atom</id>
11 <title>Atom item title html NCR</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-ncr.atom"/>
18 <entry>
19   <id>http://atomtests.philringnalda.com/tests/item/title/html-ncr.atom/1</id>
20   <title type="html">&#38;lt;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 HTML\'s character entity reference is escaped by replacing the
25 ampersand with a numeric character reference.</summary>
26   <link href="http://atomtests.philringnalda.com/alt/title-title.html"/>
27   <category term="item title"/>
28 </entry>
29 </feed>';
30         }
31         
32         function expected()
33         {
34                 $this->expected = '&lt;title>';
35         }
36 }
37
38 ?>