Add simplepie

This commit is contained in:
Mike Macgirvin
2010-07-05 03:34:42 -07:00
parent f5826105bf
commit 9f7ae0e95f
909 changed files with 38245 additions and 0 deletions
@@ -0,0 +1,19 @@
<?php
class SimplePie_Feed_Description_Test_Atom_03_DC_10_Description extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.0/">
<dc:description>Feed Description</dc:description>
</feed>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,19 @@
<?php
class SimplePie_Feed_Description_Test_Atom_03_DC_11_Description extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:description>Feed Description</dc:description>
</feed>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,19 @@
<?php
class SimplePie_Feed_Description_Test_Atom_03_Tagline extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<feed version="0.3" xmlns="http://purl.org/atom/ns#">
<tagline>Feed Description</tagline>
</feed>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,19 @@
<?php
class SimplePie_Feed_Description_Test_Atom_10_DC_10_Description extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.0/">
<dc:description>Feed Description</dc:description>
</feed>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,19 @@
<?php
class SimplePie_Feed_Description_Test_Atom_10_DC_11_Description extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:description>Feed Description</dc:description>
</feed>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,19 @@
<?php
class SimplePie_Feed_Description_Test_Atom_10_Subtitle extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<feed xmlns="http://www.w3.org/2005/Atom">
<subtitle>Feed Description</subtitle>
</feed>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_090_Atom_03_Tagline extends SimplePie_Feed_Description_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:a="http://purl.org/atom/ns#">
<channel>
<a:tagline>Feed Description</a:tagline>
</channel>
</rdf:RDF>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_090_Atom_10_Subtitle extends SimplePie_Feed_Description_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:a="http://www.w3.org/2005/Atom">
<channel>
<a:subtitle>Feed Description</a:subtitle>
</channel>
</rdf:RDF>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_090_DC_10_Description extends SimplePie_Feed_Description_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:dc="http://purl.org/dc/elements/1.0/">
<channel>
<dc:description>Feed Description</dc:description>
</channel>
</rdf:RDF>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_090_DC_11_Description extends SimplePie_Feed_Description_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:dc="http://purl.org/dc/elements/1.1/">
<channel>
<dc:description>Feed Description</dc:description>
</channel>
</rdf:RDF>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_090_Description extends SimplePie_Feed_Description_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/">
<channel>
<description>Feed Description</description>
</channel>
</rdf:RDF>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,22 @@
<?php
class SimplePie_Feed_Description_Test_RSS_091_Netscape_Atom_03_Tagline extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd">
<rss version="0.91" xmlns:a="http://purl.org/atom/ns#">
<channel>
<a:tagline>Feed Description</a:tagline>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,22 @@
<?php
class SimplePie_Feed_Description_Test_RSS_091_Netscape_Atom_10_Subtitle extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd">
<rss version="0.91" xmlns:a="http://www.w3.org/2005/Atom">
<channel>
<a:subtitle>Feed Description</a:subtitle>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,22 @@
<?php
class SimplePie_Feed_Description_Test_RSS_091_Netscape_DC_10_Description extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd">
<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.0/">
<channel>
<dc:description>Feed Description</dc:description>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,22 @@
<?php
class SimplePie_Feed_Description_Test_RSS_091_Netscape_DC_11_Description extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd">
<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<dc:description>Feed Description</dc:description>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,22 @@
<?php
class SimplePie_Feed_Description_Test_RSS_091_Netscape_Description extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd">
<rss version="0.91">
<channel>
<description>Feed Description</description>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_091_Userland_Atom_03_Tagline extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<rss version="0.91" xmlns:a="http://purl.org/atom/ns#">
<channel>
<a:tagline>Feed Description</a:tagline>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_091_Userland_Atom_10_Subtitle extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<rss version="0.91" xmlns:a="http://www.w3.org/2005/Atom">
<channel>
<a:subtitle>Feed Description</a:subtitle>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_091_Userland_DC_10_Description extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.0/">
<channel>
<dc:description>Feed Description</dc:description>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_091_Userland_DC_11_Description extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<dc:description>Feed Description</dc:description>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_091_Userland_Description extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<rss version="0.91">
<channel>
<description>Feed Description</description>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_092_Atom_03_Tagline extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<rss version="0.92" xmlns:a="http://purl.org/atom/ns#">
<channel>
<a:tagline>Feed Description</a:tagline>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_092_Atom_10_Subtitle extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<rss version="0.92" xmlns:a="http://www.w3.org/2005/Atom">
<channel>
<a:subtitle>Feed Description</a:subtitle>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_092_DC_10_Description extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<rss version="0.92" xmlns:dc="http://purl.org/dc/elements/1.0/">
<channel>
<dc:description>Feed Description</dc:description>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_092_DC_11_Description extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<rss version="0.92" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<dc:description>Feed Description</dc:description>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_092_Description extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<rss version="0.92">
<channel>
<description>Feed Description</description>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_10_Atom_03_Tagline extends SimplePie_Feed_Description_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:a="http://purl.org/atom/ns#">
<channel>
<a:tagline>Feed Description</a:tagline>
</channel>
</rdf:RDF>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_10_Atom_10_Subtitle extends SimplePie_Feed_Description_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:a="http://www.w3.org/2005/Atom">
<channel>
<a:subtitle>Feed Description</a:subtitle>
</channel>
</rdf:RDF>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_10_DC_10_Description extends SimplePie_Feed_Description_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:dc="http://purl.org/dc/elements/1.0/">
<channel>
<dc:description>Feed Description</dc:description>
</channel>
</rdf:RDF>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_10_DC_11_Description extends SimplePie_Feed_Description_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:dc="http://purl.org/dc/elements/1.1/">
<channel>
<dc:description>Feed Description</dc:description>
</channel>
</rdf:RDF>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_10_Description extends SimplePie_Feed_Description_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/">
<channel>
<description>Feed Description</description>
</channel>
</rdf:RDF>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_20_Atom_03_Tagline extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<rss version="2.0" xmlns:a="http://purl.org/atom/ns#">
<channel>
<a:tagline>Feed Description</a:tagline>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_20_Atom_10_Subtitle extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<rss version="2.0" xmlns:a="http://www.w3.org/2005/Atom">
<channel>
<a:subtitle>Feed Description</a:subtitle>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_20_DC_10_Description extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.0/">
<channel>
<dc:description>Feed Description</dc:description>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_20_DC_11_Description extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<dc:description>Feed Description</dc:description>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>
@@ -0,0 +1,21 @@
<?php
class SimplePie_Feed_Description_Test_RSS_20_Description extends SimplePie_Feed_Description_Test
{
function data()
{
$this->data =
'<rss version="2.0">
<channel>
<description>Feed Description</description>
</channel>
</rss>';
}
function expected()
{
$this->expected = 'Feed Description';
}
}
?>