diff options
Diffstat (limited to 'simplepie/test/itunes_rss/SPtests/rss/2.0')
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 |