aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/feed_title/rss-profile
diff options
context:
space:
mode:
Diffstat (limited to 'simplepie/test/feed_title/rss-profile')
-rw-r--r--simplepie/test/feed_title/rss-profile/1.php21
-rw-r--r--simplepie/test/feed_title/rss-profile/2.php21
-rw-r--r--simplepie/test/feed_title/rss-profile/3.php21
-rw-r--r--simplepie/test/feed_title/rss-profile/4.php21
-rw-r--r--simplepie/test/feed_title/rss-profile/5.php21
-rw-r--r--simplepie/test/feed_title/rss-profile/6.php21
-rw-r--r--simplepie/test/feed_title/rss-profile/7.php21
7 files changed, 147 insertions, 0 deletions
diff --git a/simplepie/test/feed_title/rss-profile/1.php b/simplepie/test/feed_title/rss-profile/1.php
new file mode 100644
index 000000000..a9580571c
--- /dev/null
+++ b/simplepie/test/feed_title/rss-profile/1.php
@@ -0,0 +1,21 @@
+<?php
+
+class RSS_Profile_Title_1 extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0">
+ <channel>
+ <title>AT&#x26;T</title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'AT&amp;T';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/rss-profile/2.php b/simplepie/test/feed_title/rss-profile/2.php
new file mode 100644
index 000000000..e7635c9af
--- /dev/null
+++ b/simplepie/test/feed_title/rss-profile/2.php
@@ -0,0 +1,21 @@
+<?php
+
+class RSS_Profile_Title_2 extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0">
+ <channel>
+ <title>Bill &#x26; Ted\'s Excellent Adventure</title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Bill &amp; Ted\'s Excellent Adventure';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/rss-profile/3.php b/simplepie/test/feed_title/rss-profile/3.php
new file mode 100644
index 000000000..2b150591e
--- /dev/null
+++ b/simplepie/test/feed_title/rss-profile/3.php
@@ -0,0 +1,21 @@
+<?php
+
+class RSS_Profile_Title_3 extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0">
+ <channel>
+ <title>The &#x26;amp; entity</title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'The &amp;amp; entity';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/rss-profile/4.php b/simplepie/test/feed_title/rss-profile/4.php
new file mode 100644
index 000000000..d46435ada
--- /dev/null
+++ b/simplepie/test/feed_title/rss-profile/4.php
@@ -0,0 +1,21 @@
+<?php
+
+class RSS_Profile_Title_4 extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0">
+ <channel>
+ <title>I &#x3C;3 Phil Ringnalda</title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'I &lt;3 Phil Ringnalda';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/rss-profile/5.php b/simplepie/test/feed_title/rss-profile/5.php
new file mode 100644
index 000000000..ca4d28cc7
--- /dev/null
+++ b/simplepie/test/feed_title/rss-profile/5.php
@@ -0,0 +1,21 @@
+<?php
+
+class RSS_Profile_Title_5 extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0">
+ <channel>
+ <title>A &#x3C; B</title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'A &lt; B';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/rss-profile/6.php b/simplepie/test/feed_title/rss-profile/6.php
new file mode 100644
index 000000000..525ca2052
--- /dev/null
+++ b/simplepie/test/feed_title/rss-profile/6.php
@@ -0,0 +1,21 @@
+<?php
+
+class RSS_Profile_Title_6 extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0">
+ <channel>
+ <title>A&#x3C;B</title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'A&lt;B';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/feed_title/rss-profile/7.php b/simplepie/test/feed_title/rss-profile/7.php
new file mode 100644
index 000000000..26d699b75
--- /dev/null
+++ b/simplepie/test/feed_title/rss-profile/7.php
@@ -0,0 +1,21 @@
+<?php
+
+class RSS_Profile_Title_7 extends SimplePie_Feed_Title_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0">
+ <channel>
+ <title>Nice &#x3C;gorilla&#x3E; what\'s he weigh?</title>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'Nice &lt;gorilla&gt; what\'s he weigh?';
+ }
+}
+
+?> \ No newline at end of file