Projet

Général

Profil

Paste
Télécharger (1,14 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / libraries / simplepie / tests / oldtests / who_knows_a_title_from_a_hole_in_the_ground / text / cdata.php @ 41cc1b08

1
<?php
2

    
3
class who_knows_a_title_from_a_hole_in_the_ground_text_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/text-cdata.atom</id>
11
<title>Atom item title text in 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/text-cdata.atom"/>
18
<entry>
19
  
20
<id>http://atomtests.philringnalda.com/tests/item/title/text-cdata.atom/1</id>
21
  <title type="text"><![CDATA[<title>]]></title>
22
  <updated>2005-12-18T00:13:00Z</updated>
23
  <summary>An item with a type="text" title consisting of a less-than 
24
character, the word \'title\' and a greater-than character, where 
25
the less-than is escaped by being 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
        function expected()
33
        {
34
                $this->expected = '&lt;title&gt;';
35
        }
36
}
37

    
38
?>