Add simplepie
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user