aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/first_item_latitude/SPtests/rss/2.0
diff options
context:
space:
mode:
Diffstat (limited to 'simplepie/test/first_item_latitude/SPtests/rss/2.0')
-rw-r--r--simplepie/test/first_item_latitude/SPtests/rss/2.0/geo/lat.php24
-rw-r--r--simplepie/test/first_item_latitude/SPtests/rss/2.0/georss/point.php23
2 files changed, 47 insertions, 0 deletions
diff --git a/simplepie/test/first_item_latitude/SPtests/rss/2.0/geo/lat.php b/simplepie/test/first_item_latitude/SPtests/rss/2.0/geo/lat.php
new file mode 100644
index 000000000..0eb4cbf90
--- /dev/null
+++ b/simplepie/test/first_item_latitude/SPtests/rss/2.0/geo/lat.php
@@ -0,0 +1,24 @@
+<?php
+
+class SimplePie_First_Item_Latitude_Test_RSS_20_Geo_Lat extends SimplePie_First_Item_Latitude_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
+ <channel>
+ <item>
+ <geo:lat>55.701</geo:lat>
+ <geo:long>12.552</geo:long>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 55.701;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_latitude/SPtests/rss/2.0/georss/point.php b/simplepie/test/first_item_latitude/SPtests/rss/2.0/georss/point.php
new file mode 100644
index 000000000..ccb54ba37
--- /dev/null
+++ b/simplepie/test/first_item_latitude/SPtests/rss/2.0/georss/point.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_First_Item_Latitude_Test_RSS_20_Georss_Point extends SimplePie_First_Item_Latitude_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0" xmlns:georss="http://www.georss.org/georss">
+ <channel>
+ <item>
+ <georss:point>55.701 12.552</georss:point>
+ </item>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 55.701;
+ }
+}
+
+?> \ No newline at end of file