aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/feed_title/rss-profile
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-05 03:34:42 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-05 03:34:42 -0700
commit9f7ae0e95f89b964a098eaacdfd89ff25e05c615 (patch)
tree0bfe8d04f4b11abdbea41fe9bf6e165eec8ebc4b /simplepie/test/feed_title/rss-profile
parentf5826105bfc514599b2c5b6692bca14ca4bc5d78 (diff)
downloadvolse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.tar.gz
volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.tar.bz2
volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.zip
Add simplepie
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