aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/itunes_rss/SPtests/rss/2.0
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/itunes_rss/SPtests/rss/2.0
parentf5826105bfc514599b2c5b6692bca14ca4bc5d78 (diff)
downloadvolse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.tar.gz
volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.tar.bz2
volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.zip
Add simplepie
Diffstat (limited to 'simplepie/test/itunes_rss/SPtests/rss/2.0')
-rw-r--r--simplepie/test/itunes_rss/SPtests/rss/2.0/itunes_channel_block.php24
-rw-r--r--simplepie/test/itunes_rss/SPtests/rss/2.0/itunes_channel_block_default.php23
-rw-r--r--simplepie/test/itunes_rss/SPtests/rss/2.0/itunes_channel_block_reverse.php24
3 files changed, 71 insertions, 0 deletions
diff --git a/simplepie/test/itunes_rss/SPtests/rss/2.0/itunes_channel_block.php b/simplepie/test/itunes_rss/SPtests/rss/2.0/itunes_channel_block.php
new file mode 100644
index 000000000..c5ecd4d13
--- /dev/null
+++ b/simplepie/test/itunes_rss/SPtests/rss/2.0/itunes_channel_block.php
@@ -0,0 +1,24 @@
+<?php
+
+class SimplePie_iTunesRSS_Channel_Block_Test_RSS_20 extends SimplePie_iTunesRSS_Channel_Block_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd">
+ <channel>
+ <itunes:block>yes</itunes:block>
+ <item>
+ <enclosure url="http://test.com/test.mp3" />
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'deny';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/itunes_rss/SPtests/rss/2.0/itunes_channel_block_default.php b/simplepie/test/itunes_rss/SPtests/rss/2.0/itunes_channel_block_default.php
new file mode 100644
index 000000000..0d840202b
--- /dev/null
+++ b/simplepie/test/itunes_rss/SPtests/rss/2.0/itunes_channel_block_default.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_iTunesRSS_Channel_Block_Default_Test_RSS_20 extends SimplePie_iTunesRSS_Channel_Block_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd">
+ <channel>
+ <item>
+ <enclosure url="http://test.com/test.mp3" />
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'allow';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/itunes_rss/SPtests/rss/2.0/itunes_channel_block_reverse.php b/simplepie/test/itunes_rss/SPtests/rss/2.0/itunes_channel_block_reverse.php
new file mode 100644
index 000000000..86d84e72a
--- /dev/null
+++ b/simplepie/test/itunes_rss/SPtests/rss/2.0/itunes_channel_block_reverse.php
@@ -0,0 +1,24 @@
+<?php
+
+class SimplePie_iTunesRSS_Channel_Block_Reverse_Test_RSS_20 extends SimplePie_iTunesRSS_Channel_Block_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd">
+ <channel>
+ <itunes:block>no</itunes:block>
+ <item>
+ <enclosure url="http://test.com/test.mp3" />
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 'allow';
+ }
+}
+
+?> \ No newline at end of file