diff options
Diffstat (limited to 'simplepie/test/first_item_latitude/SPtests/atom')
4 files changed, 86 insertions, 0 deletions
diff --git a/simplepie/test/first_item_latitude/SPtests/atom/0.3/geo/lat.php b/simplepie/test/first_item_latitude/SPtests/atom/0.3/geo/lat.php new file mode 100644 index 000000000..fe187c6f9 --- /dev/null +++ b/simplepie/test/first_item_latitude/SPtests/atom/0.3/geo/lat.php @@ -0,0 +1,22 @@ +<?php + +class SimplePie_First_Item_Latitude_Test_Atom_03_Geo_Lat extends SimplePie_First_Item_Latitude_Test +{ + function data() + { + $this->data = +'<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"> + <entry> + <geo:lat>55.701</geo:lat> + <geo:long>12.552</geo:long> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 55.701; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_latitude/SPtests/atom/0.3/georss/point.php b/simplepie/test/first_item_latitude/SPtests/atom/0.3/georss/point.php new file mode 100644 index 000000000..641c812a4 --- /dev/null +++ b/simplepie/test/first_item_latitude/SPtests/atom/0.3/georss/point.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Latitude_Test_Atom_03_Georss_Point extends SimplePie_First_Item_Latitude_Test +{ + function data() + { + $this->data = +'<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:georss="http://www.georss.org/georss"> + <entry> + <georss:point>55.701 12.552</georss:point> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 55.701; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_latitude/SPtests/atom/1.0/geo/lat.php b/simplepie/test/first_item_latitude/SPtests/atom/1.0/geo/lat.php new file mode 100644 index 000000000..fad25f8cf --- /dev/null +++ b/simplepie/test/first_item_latitude/SPtests/atom/1.0/geo/lat.php @@ -0,0 +1,22 @@ +<?php + +class SimplePie_First_Item_Latitude_Test_Atom_10_Geo_Lat extends SimplePie_First_Item_Latitude_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"> + <entry> + <geo:lat>55.701</geo:lat> + <geo:long>12.552</geo:long> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 55.701; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_latitude/SPtests/atom/1.0/georss/point.php b/simplepie/test/first_item_latitude/SPtests/atom/1.0/georss/point.php new file mode 100644 index 000000000..10a028a92 --- /dev/null +++ b/simplepie/test/first_item_latitude/SPtests/atom/1.0/georss/point.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Latitude_Test_Atom_10_Georss_Point extends SimplePie_First_Item_Latitude_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom" xmlns:georss="http://www.georss.org/georss"> + <entry> + <georss:point>55.701 12.552</georss:point> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 55.701; + } +} + +?>
\ No newline at end of file |