aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/first_item_longitude/SPtests/rss
diff options
context:
space:
mode:
Diffstat (limited to 'simplepie/test/first_item_longitude/SPtests/rss')
-rw-r--r--simplepie/test/first_item_longitude/SPtests/rss/0.90/geo/long.php22
-rw-r--r--simplepie/test/first_item_longitude/SPtests/rss/0.90/georss/point.php21
-rw-r--r--simplepie/test/first_item_longitude/SPtests/rss/0.91-netscape/geo/long.php25
-rw-r--r--simplepie/test/first_item_longitude/SPtests/rss/0.91-netscape/georss/point.php24
-rw-r--r--simplepie/test/first_item_longitude/SPtests/rss/0.91-userland/geo/long.php24
-rw-r--r--simplepie/test/first_item_longitude/SPtests/rss/0.91-userland/georss/point.php23
-rw-r--r--simplepie/test/first_item_longitude/SPtests/rss/0.92/geo/long.php24
-rw-r--r--simplepie/test/first_item_longitude/SPtests/rss/0.92/georss/point.php23
-rw-r--r--simplepie/test/first_item_longitude/SPtests/rss/1.0/geo/long.php22
-rw-r--r--simplepie/test/first_item_longitude/SPtests/rss/1.0/georss/point.php21
-rw-r--r--simplepie/test/first_item_longitude/SPtests/rss/2.0/geo/long.php24
-rw-r--r--simplepie/test/first_item_longitude/SPtests/rss/2.0/georss/point.php23
12 files changed, 276 insertions, 0 deletions
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