diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-05 03:34:42 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-05 03:34:42 -0700 |
commit | 9f7ae0e95f89b964a098eaacdfd89ff25e05c615 (patch) | |
tree | 0bfe8d04f4b11abdbea41fe9bf6e165eec8ebc4b /simplepie/test/first_item_longitude | |
parent | f5826105bfc514599b2c5b6692bca14ca4bc5d78 (diff) | |
download | volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.tar.gz volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.tar.bz2 volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.zip |
Add simplepie
Diffstat (limited to 'simplepie/test/first_item_longitude')
16 files changed, 362 insertions, 0 deletions
diff --git a/simplepie/test/first_item_longitude/SPtests/atom/0.3/geo/long.php b/simplepie/test/first_item_longitude/SPtests/atom/0.3/geo/long.php new file mode 100644 index 000000000..334fd1827 --- /dev/null +++ b/simplepie/test/first_item_longitude/SPtests/atom/0.3/geo/long.php @@ -0,0 +1,22 @@ +<?php + +class SimplePie_First_Item_Longitude_Test_Atom_03_Geo_Long extends SimplePie_First_Item_Longitude_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 = 12.552; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_longitude/SPtests/atom/0.3/georss/point.php b/simplepie/test/first_item_longitude/SPtests/atom/0.3/georss/point.php new file mode 100644 index 000000000..fec93693b --- /dev/null +++ b/simplepie/test/first_item_longitude/SPtests/atom/0.3/georss/point.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Longitude_Test_Atom_03_Georss_Point extends SimplePie_First_Item_Longitude_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 = 12.552; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_longitude/SPtests/atom/1.0/geo/long.php b/simplepie/test/first_item_longitude/SPtests/atom/1.0/geo/long.php new file mode 100644 index 000000000..96cd8fe1a --- /dev/null +++ b/simplepie/test/first_item_longitude/SPtests/atom/1.0/geo/long.php @@ -0,0 +1,22 @@ +<?php + +class SimplePie_First_Item_Longitude_Test_Atom_10_Geo_Long extends SimplePie_First_Item_Longitude_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 = 12.552; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_longitude/SPtests/atom/1.0/georss/point.php b/simplepie/test/first_item_longitude/SPtests/atom/1.0/georss/point.php new file mode 100644 index 000000000..a0e4864d8 --- /dev/null +++ b/simplepie/test/first_item_longitude/SPtests/atom/1.0/georss/point.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Longitude_Test_Atom_10_Georss_Point extends SimplePie_First_Item_Longitude_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 = 12.552; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_longitude/SPtests/rss/0.90/geo/long.php b/simplepie/test/first_item_longitude/SPtests/rss/0.90/geo/long.php new file mode 100644 index 000000000..4656bbc9b --- /dev/null +++ b/simplepie/test/first_item_longitude/SPtests/rss/0.90/geo/long.php @@ -0,0 +1,22 @@ +<?php + +class SimplePie_First_Item_Longitude_Test_RSS_090_Geo_Long extends SimplePie_First_Item_Longitude_Test +{ + function data() + { + $this->data = +'<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://my.netscape.com/rdf/simple/0.9/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"> + <item> + <geo:lat>55.701</geo:lat> + <geo:long>12.552</geo:long> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 12.552; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_longitude/SPtests/rss/0.90/georss/point.php b/simplepie/test/first_item_longitude/SPtests/rss/0.90/georss/point.php new file mode 100644 index 000000000..4dfbf8d74 --- /dev/null +++ b/simplepie/test/first_item_longitude/SPtests/rss/0.90/georss/point.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Longitude_Test_RSS_090_Georss_Point extends SimplePie_First_Item_Longitude_Test +{ + function data() + { + $this->data = +'<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://my.netscape.com/rdf/simple/0.9/" xmlns:georss="http://www.georss.org/georss"> + <item> + <georss:point>55.701 12.552</georss:point> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 12.552; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_longitude/SPtests/rss/0.91-netscape/geo/long.php b/simplepie/test/first_item_longitude/SPtests/rss/0.91-netscape/geo/long.php new file mode 100644 index 000000000..e2070c5c7 --- /dev/null +++ b/simplepie/test/first_item_longitude/SPtests/rss/0.91-netscape/geo/long.php @@ -0,0 +1,25 @@ +<?php + +class SimplePie_First_Item_Longitude_Test_RSS_091_Netscape_Geo_Long extends SimplePie_First_Item_Longitude_Test +{ + function data() + { + $this->data = +'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd"> +<rss version="0.91" 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 = 12.552; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_longitude/SPtests/rss/0.91-netscape/georss/point.php b/simplepie/test/first_item_longitude/SPtests/rss/0.91-netscape/georss/point.php new file mode 100644 index 000000000..343651ec2 --- /dev/null +++ b/simplepie/test/first_item_longitude/SPtests/rss/0.91-netscape/georss/point.php @@ -0,0 +1,24 @@ +<?php + +class SimplePie_First_Item_Longitude_Test_RSS_091_Netscape_Georss_Point extends SimplePie_First_Item_Longitude_Test +{ + function data() + { + $this->data = +'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd"> +<rss version="0.91" xmlns:georss="http://www.georss.org/georss"> + <channel> + <item> + <georss:point>55.701 12.552</georss:point> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 12.552; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_longitude/SPtests/rss/0.91-userland/geo/long.php b/simplepie/test/first_item_longitude/SPtests/rss/0.91-userland/geo/long.php new file mode 100644 index 000000000..19f92d20b --- /dev/null +++ b/simplepie/test/first_item_longitude/SPtests/rss/0.91-userland/geo/long.php @@ -0,0 +1,24 @@ +<?php + +class SimplePie_First_Item_Longitude_Test_RSS_091_Userland_Geo_Long extends SimplePie_First_Item_Longitude_Test +{ + function data() + { + $this->data = +'<rss version="0.91" 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 = 12.552; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_longitude/SPtests/rss/0.91-userland/georss/point.php b/simplepie/test/first_item_longitude/SPtests/rss/0.91-userland/georss/point.php new file mode 100644 index 000000000..1bbc35d69 --- /dev/null +++ b/simplepie/test/first_item_longitude/SPtests/rss/0.91-userland/georss/point.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Longitude_Test_RSS_091_Userland_Georss_Point extends SimplePie_First_Item_Longitude_Test +{ + function data() + { + $this->data = +'<rss version="0.91" xmlns:georss="http://www.georss.org/georss"> + <channel> + <item> + <georss:point>55.701 12.552</georss:point> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 12.552; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_longitude/SPtests/rss/0.92/geo/long.php b/simplepie/test/first_item_longitude/SPtests/rss/0.92/geo/long.php new file mode 100644 index 000000000..27a4ac88d --- /dev/null +++ b/simplepie/test/first_item_longitude/SPtests/rss/0.92/geo/long.php @@ -0,0 +1,24 @@ +<?php + +class SimplePie_First_Item_Longitude_Test_RSS_092_Geo_Long extends SimplePie_First_Item_Longitude_Test +{ + function data() + { + $this->data = +'<rss version="0.92" 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 = 12.552; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_longitude/SPtests/rss/0.92/georss/point.php b/simplepie/test/first_item_longitude/SPtests/rss/0.92/georss/point.php new file mode 100644 index 000000000..837e7d355 --- /dev/null +++ b/simplepie/test/first_item_longitude/SPtests/rss/0.92/georss/point.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Longitude_Test_RSS_092_Georss_Point extends SimplePie_First_Item_Longitude_Test +{ + function data() + { + $this->data = +'<rss version="0.92" xmlns:georss="http://www.georss.org/georss"> + <channel> + <item> + <georss:point>55.701 12.552</georss:point> + </item> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 12.552; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_longitude/SPtests/rss/1.0/geo/long.php b/simplepie/test/first_item_longitude/SPtests/rss/1.0/geo/long.php new file mode 100644 index 000000000..e7e6f302d --- /dev/null +++ b/simplepie/test/first_item_longitude/SPtests/rss/1.0/geo/long.php @@ -0,0 +1,22 @@ +<?php + +class SimplePie_First_Item_Longitude_Test_RSS_10_Geo_Long extends SimplePie_First_Item_Longitude_Test +{ + function data() + { + $this->data = +'<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"> + <item> + <geo:lat>55.701</geo:lat> + <geo:long>12.552</geo:long> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 12.552; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_longitude/SPtests/rss/1.0/georss/point.php b/simplepie/test/first_item_longitude/SPtests/rss/1.0/georss/point.php new file mode 100644 index 000000000..536381ece --- /dev/null +++ b/simplepie/test/first_item_longitude/SPtests/rss/1.0/georss/point.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_Longitude_Test_RSS_10_Georss_Point extends SimplePie_First_Item_Longitude_Test +{ + function data() + { + $this->data = +'<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:georss="http://www.georss.org/georss"> + <item> + <georss:point>55.701 12.552</georss:point> + </item> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 12.552; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_longitude/SPtests/rss/2.0/geo/long.php b/simplepie/test/first_item_longitude/SPtests/rss/2.0/geo/long.php new file mode 100644 index 000000000..f3ae64bab --- /dev/null +++ b/simplepie/test/first_item_longitude/SPtests/rss/2.0/geo/long.php @@ -0,0 +1,24 @@ +<?php + +class SimplePie_First_Item_Longitude_Test_RSS_20_Geo_Long extends SimplePie_First_Item_Longitude_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 = 12.552; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_longitude/SPtests/rss/2.0/georss/point.php b/simplepie/test/first_item_longitude/SPtests/rss/2.0/georss/point.php new file mode 100644 index 000000000..c1a7a94a4 --- /dev/null +++ b/simplepie/test/first_item_longitude/SPtests/rss/2.0/georss/point.php @@ -0,0 +1,23 @@ +<?php + +class SimplePie_First_Item_Longitude_Test_RSS_20_Georss_Point extends SimplePie_First_Item_Longitude_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 = 12.552; + } +} + +?>
\ No newline at end of file |