diff options
Diffstat (limited to 'simplepie/test/first_item_date/SPtests/rss/2.0/atom')
5 files changed, 115 insertions, 0 deletions
diff --git a/simplepie/test/first_item_date/SPtests/rss/2.0/atom/0.3/created.php b/simplepie/test/first_item_date/SPtests/rss/2.0/atom/0.3/created.php new file mode 100644 index 000000000..27206e6c2 --- /dev/null +++ b/simplepie/test/first_item_date/SPtests/rss/2.0/atom/0.3/created.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Date_Test_RSS_20_Atom_03_Created extends SimplePie_First_Item_Date_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:a="http://purl.org/atom/ns#"> + <channel> + <item> + <a:created>2007-01-11T16:00:00Z</a:created> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 1168531200; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_date/SPtests/rss/2.0/atom/0.3/issued.php b/simplepie/test/first_item_date/SPtests/rss/2.0/atom/0.3/issued.php new file mode 100644 index 000000000..feb659ea7 --- /dev/null +++ b/simplepie/test/first_item_date/SPtests/rss/2.0/atom/0.3/issued.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Date_Test_RSS_20_Atom_03_Issued extends SimplePie_First_Item_Date_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:a="http://purl.org/atom/ns#"> + <channel> + <item> + <a:issued>2007-01-11T16:00:00Z</a:issued> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 1168531200; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_date/SPtests/rss/2.0/atom/0.3/modified.php b/simplepie/test/first_item_date/SPtests/rss/2.0/atom/0.3/modified.php new file mode 100644 index 000000000..8636075f0 --- /dev/null +++ b/simplepie/test/first_item_date/SPtests/rss/2.0/atom/0.3/modified.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Date_Test_RSS_20_Atom_03_Modified extends SimplePie_First_Item_Date_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:a="http://purl.org/atom/ns#"> + <channel> + <item> + <a:modified>2007-01-11T16:00:00Z</a:modified> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 1168531200; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_date/SPtests/rss/2.0/atom/1.0/published.php b/simplepie/test/first_item_date/SPtests/rss/2.0/atom/1.0/published.php new file mode 100644 index 000000000..6af2c9f10 --- /dev/null +++ b/simplepie/test/first_item_date/SPtests/rss/2.0/atom/1.0/published.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Date_Test_RSS_20_Atom_10_Published extends SimplePie_First_Item_Date_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <item> + <a:published>2007-01-11T16:00:00Z</a:published> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 1168531200; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_date/SPtests/rss/2.0/atom/1.0/updated.php b/simplepie/test/first_item_date/SPtests/rss/2.0/atom/1.0/updated.php new file mode 100644 index 000000000..67fc954d0 --- /dev/null +++ b/simplepie/test/first_item_date/SPtests/rss/2.0/atom/1.0/updated.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Date_Test_RSS_20_Atom_10_Updated extends SimplePie_First_Item_Date_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:a="http://www.w3.org/2005/Atom"> + <channel> + <item> + <a:updated>2007-01-11T16:00:00Z</a:updated> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 1168531200; + } +} + +?>
\ No newline at end of file |