aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/first_item_latitude
diff options
context:
space:
mode:
Diffstat (limited to 'simplepie/test/first_item_latitude')
-rw-r--r--simplepie/test/first_item_latitude/SPtests/atom/0.3/geo/lat.php22
-rw-r--r--simplepie/test/first_item_latitude/SPtests/atom/0.3/georss/point.php21
-rw-r--r--simplepie/test/first_item_latitude/SPtests/atom/1.0/geo/lat.php22
-rw-r--r--simplepie/test/first_item_latitude/SPtests/atom/1.0/georss/point.php21
-rw-r--r--simplepie/test/first_item_latitude/SPtests/rss/0.90/geo/lat.php22
-rw-r--r--simplepie/test/first_item_latitude/SPtests/rss/0.90/georss/point.php21
-rw-r--r--simplepie/test/first_item_latitude/SPtests/rss/0.91-netscape/geo/lat.php25
-rw-r--r--simplepie/test/first_item_latitude/SPtests/rss/0.91-netscape/georss/point.php24
-rw-r--r--simplepie/test/first_item_latitude/SPtests/rss/0.91-userland/geo/lat.php24
-rw-r--r--simplepie/test/first_item_latitude/SPtests/rss/0.91-userland/georss/point.php23
-rw-r--r--simplepie/test/first_item_latitude/SPtests/rss/0.92/geo/lat.php24
-rw-r--r--simplepie/test/first_item_latitude/SPtests/rss/0.92/georss/point.php23
-rw-r--r--simplepie/test/first_item_latitude/SPtests/rss/1.0/geo/lat.php22
-rw-r--r--simplepie/test/first_item_latitude/SPtests/rss/1.0/georss/point.php21
-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
16 files changed, 362 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
diff --git a/simplepie/test/first_item_latitude/SPtests/rss/0.90/geo/lat.php b/simplepie/test/first_item_latitude/SPtests/rss/0.90/geo/lat.php
new file mode 100644
index 000000000..2881be89e
--- /dev/null
+++ b/simplepie/test/first_item_latitude/SPtests/rss/0.90/geo/lat.php
@@ -0,0 +1,22 @@
+<?php
+
+class SimplePie_First_Item_Latitude_Test_RSS_090_Geo_Lat extends SimplePie_First_Item_Latitude_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 = 55.701;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_latitude/SPtests/rss/0.90/georss/point.php b/simplepie/test/first_item_latitude/SPtests/rss/0.90/georss/point.php
new file mode 100644
index 000000000..9cbfcbf86
--- /dev/null
+++ b/simplepie/test/first_item_latitude/SPtests/rss/0.90/georss/point.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Latitude_Test_RSS_090_Georss_Point extends SimplePie_First_Item_Latitude_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 = 55.701;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_latitude/SPtests/rss/0.91-netscape/geo/lat.php b/simplepie/test/first_item_latitude/SPtests/rss/0.91-netscape/geo/lat.php
new file mode 100644
index 000000000..9dad031db
--- /dev/null
+++ b/simplepie/test/first_item_latitude/SPtests/rss/0.91-netscape/geo/lat.php
@@ -0,0 +1,25 @@
+<?php
+
+class SimplePie_First_Item_Latitude_Test_RSS_091_Netscape_Geo_Lat extends SimplePie_First_Item_Latitude_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 = 55.701;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_latitude/SPtests/rss/0.91-netscape/georss/point.php b/simplepie/test/first_item_latitude/SPtests/rss/0.91-netscape/georss/point.php
new file mode 100644
index 000000000..eed539da6
--- /dev/null
+++ b/simplepie/test/first_item_latitude/SPtests/rss/0.91-netscape/georss/point.php
@@ -0,0 +1,24 @@
+<?php
+
+class SimplePie_First_Item_Latitude_Test_RSS_091_Netscape_Georss_Point extends SimplePie_First_Item_Latitude_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 = 55.701;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_latitude/SPtests/rss/0.91-userland/geo/lat.php b/simplepie/test/first_item_latitude/SPtests/rss/0.91-userland/geo/lat.php
new file mode 100644
index 000000000..b22e5c808
--- /dev/null
+++ b/simplepie/test/first_item_latitude/SPtests/rss/0.91-userland/geo/lat.php
@@ -0,0 +1,24 @@
+<?php
+
+class SimplePie_First_Item_Latitude_Test_RSS_091_Userland_Geo_Lat extends SimplePie_First_Item_Latitude_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 = 55.701;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_latitude/SPtests/rss/0.91-userland/georss/point.php b/simplepie/test/first_item_latitude/SPtests/rss/0.91-userland/georss/point.php
new file mode 100644
index 000000000..49c9cf10b
--- /dev/null
+++ b/simplepie/test/first_item_latitude/SPtests/rss/0.91-userland/georss/point.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_First_Item_Latitude_Test_RSS_091_Userland_Georss_Point extends SimplePie_First_Item_Latitude_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 = 55.701;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_latitude/SPtests/rss/0.92/geo/lat.php b/simplepie/test/first_item_latitude/SPtests/rss/0.92/geo/lat.php
new file mode 100644
index 000000000..5c22e0278
--- /dev/null
+++ b/simplepie/test/first_item_latitude/SPtests/rss/0.92/geo/lat.php
@@ -0,0 +1,24 @@
+<?php
+
+class SimplePie_First_Item_Latitude_Test_RSS_092_Geo_Lat extends SimplePie_First_Item_Latitude_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 = 55.701;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_latitude/SPtests/rss/0.92/georss/point.php b/simplepie/test/first_item_latitude/SPtests/rss/0.92/georss/point.php
new file mode 100644
index 000000000..70845a61c
--- /dev/null
+++ b/simplepie/test/first_item_latitude/SPtests/rss/0.92/georss/point.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_First_Item_Latitude_Test_RSS_092_Georss_Point extends SimplePie_First_Item_Latitude_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 = 55.701;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_latitude/SPtests/rss/1.0/geo/lat.php b/simplepie/test/first_item_latitude/SPtests/rss/1.0/geo/lat.php
new file mode 100644
index 000000000..bfe8aaedf
--- /dev/null
+++ b/simplepie/test/first_item_latitude/SPtests/rss/1.0/geo/lat.php
@@ -0,0 +1,22 @@
+<?php
+
+class SimplePie_First_Item_Latitude_Test_RSS_10_Geo_Lat extends SimplePie_First_Item_Latitude_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 = 55.701;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/first_item_latitude/SPtests/rss/1.0/georss/point.php b/simplepie/test/first_item_latitude/SPtests/rss/1.0/georss/point.php
new file mode 100644
index 000000000..e5da44330
--- /dev/null
+++ b/simplepie/test/first_item_latitude/SPtests/rss/1.0/georss/point.php
@@ -0,0 +1,21 @@
+<?php
+
+class SimplePie_First_Item_Latitude_Test_RSS_10_Georss_Point extends SimplePie_First_Item_Latitude_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 = 55.701;
+ }
+}
+
+?> \ No newline at end of file
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