diff options
Diffstat (limited to 'simplepie/test/first_item_permalink/SPtests/bugs')
9 files changed, 205 insertions, 0 deletions
diff --git a/simplepie/test/first_item_permalink/SPtests/bugs/10.0.php b/simplepie/test/first_item_permalink/SPtests/bugs/10.0.php new file mode 100644 index 000000000..12f56b8c2 --- /dev/null +++ b/simplepie/test/first_item_permalink/SPtests/bugs/10.0.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Permalink_Test_Bug_10_Test_0 extends SimplePie_First_Item_Permalink_Test +{ + function data() + { + $this->data = +'<rss version="2.0"> + <channel> + <item> + <guid>http://example.com/</guid> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_permalink/SPtests/bugs/10.1.php b/simplepie/test/first_item_permalink/SPtests/bugs/10.1.php new file mode 100644 index 000000000..78f115049 --- /dev/null +++ b/simplepie/test/first_item_permalink/SPtests/bugs/10.1.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Permalink_Test_Bug_10_Test_1 extends SimplePie_First_Item_Permalink_Test +{ + function data() + { + $this->data = +'<rss version="2.0"> + <channel> + <item> + <guid isPermaLink="true">http://example.com/</guid> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_permalink/SPtests/bugs/10.2.php b/simplepie/test/first_item_permalink/SPtests/bugs/10.2.php new file mode 100644 index 000000000..1611e3f7c --- /dev/null +++ b/simplepie/test/first_item_permalink/SPtests/bugs/10.2.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Permalink_Test_Bug_10_Test_2 extends SimplePie_First_Item_Permalink_Test +{ + function data() + { + $this->data = +'<rss version="2.0"> + <channel> + <item> + <guid isPermaLink="meep">http://example.com/</guid> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = NULL; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_permalink/SPtests/bugs/10.3.php b/simplepie/test/first_item_permalink/SPtests/bugs/10.3.php new file mode 100644 index 000000000..ed9dbf407 --- /dev/null +++ b/simplepie/test/first_item_permalink/SPtests/bugs/10.3.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Permalink_Test_Bug_10_Test_3 extends SimplePie_First_Item_Permalink_Test +{ + function data() + { + $this->data = +'<rss version="2.0"> + <channel> + <item> + <guid isPermaLink="false">http://example.com/</guid> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = NULL; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_permalink/SPtests/bugs/156.0.php b/simplepie/test/first_item_permalink/SPtests/bugs/156.0.php new file mode 100644 index 000000000..0f9c5151d --- /dev/null +++ b/simplepie/test/first_item_permalink/SPtests/bugs/156.0.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Permalink_Test_Bug_156_Test_0 extends SimplePie_First_Item_Permalink_Test +{ + function data() + { + $this->data = +'<rss version="2.0"> + <channel> + <item> + <enclosure url="http://example.com/" length="1" type="audio/mpeg"/> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_permalink/SPtests/bugs/176.0.php b/simplepie/test/first_item_permalink/SPtests/bugs/176.0.php new file mode 100644 index 000000000..a71dd3249 --- /dev/null +++ b/simplepie/test/first_item_permalink/SPtests/bugs/176.0.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Permalink_Test_Bug_176_Test_0 extends SimplePie_First_Item_Permalink_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom"> + <entry> + <link rel="related" href="http://example.com/related"/> + <link rel="via" href="http://example.com/via"/> + <link rel="alternate" href="http://example.com/alternate"/> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'http://example.com/alternate'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_permalink/SPtests/bugs/176.1.php b/simplepie/test/first_item_permalink/SPtests/bugs/176.1.php new file mode 100644 index 000000000..0c217d283 --- /dev/null +++ b/simplepie/test/first_item_permalink/SPtests/bugs/176.1.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Permalink_Test_Bug_176_Test_1 extends SimplePie_First_Item_Permalink_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom"> + <entry> + <link rel="alternate" href="http://example.com/alternate"/> + <link rel="related" href="http://example.com/related"/> + <link rel="via" href="http://example.com/via"/> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'http://example.com/alternate'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_permalink/SPtests/bugs/176.2.php b/simplepie/test/first_item_permalink/SPtests/bugs/176.2.php new file mode 100644 index 000000000..6464d2a2a --- /dev/null +++ b/simplepie/test/first_item_permalink/SPtests/bugs/176.2.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Permalink_Test_Bug_176_Test_2 extends SimplePie_First_Item_Permalink_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom"> + <entry> + <link rel="related" href="http://example.com/related"/> + <link rel="alternate" href="http://example.com/alternate"/> + <link rel="via" href="http://example.com/via"/> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'http://example.com/alternate'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_permalink/SPtests/bugs/640.0.php b/simplepie/test/first_item_permalink/SPtests/bugs/640.0.php new file mode 100644 index 000000000..a897bc82e --- /dev/null +++ b/simplepie/test/first_item_permalink/SPtests/bugs/640.0.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Permalink_Test_Bug_640_Test_0 extends SimplePie_First_Item_Permalink_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom" xml:base="http://example.com/" > + <entry> + <link href=""/> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file |