Add simplepie
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_Atom_10_Icon_Default extends SimplePie_Feed_Image_Width_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data =
|
||||
'<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<icon>http://example.com/</icon>
|
||||
</feed>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_Atom_10_Logo_Default extends SimplePie_Feed_Image_Width_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data =
|
||||
'<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<logo>http://example.com/</logo>
|
||||
</feed>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_090_Atom_10_Icon extends SimplePie_Feed_Image_Width_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:icon>http://example.com/</a:icon>
|
||||
</channel>
|
||||
</rdf:RDF>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_090_Atom_10_Logo extends SimplePie_Feed_Image_Width_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:logo>http://example.com/</a:logo>
|
||||
</channel>
|
||||
</rdf:RDF>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_090 extends SimplePie_Feed_Image_Width_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/">
|
||||
<image>
|
||||
<url>http://example.com/</url>
|
||||
</image>
|
||||
</rdf:RDF>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_091_Netscape_Atom_10_Icon extends SimplePie_Feed_Image_Width_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:icon>http://example.com/</a:icon>
|
||||
</channel>
|
||||
</rss>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_091_Netscape_Atom_10_Logo extends SimplePie_Feed_Image_Width_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:logo>http://example.com/</a:logo>
|
||||
</channel>
|
||||
</rss>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_091_Netscape extends SimplePie_Feed_Image_Width_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data =
|
||||
'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd">
|
||||
<rss version="0.91">
|
||||
<channel>
|
||||
<image>
|
||||
<url>http://example.com/</url>
|
||||
</image>
|
||||
</channel>
|
||||
</rss>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 88.0;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_091_Netscape_Width extends SimplePie_Feed_Image_Width_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data =
|
||||
'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd">
|
||||
<rss version="0.91">
|
||||
<channel>
|
||||
<image>
|
||||
<width>100</width>
|
||||
</image>
|
||||
</channel>
|
||||
</rss>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 100.0;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_091_Userland_Atom_10_Icon extends SimplePie_Feed_Image_Width_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data =
|
||||
'<rss version="0.91" xmlns:a="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<a:icon>http://example.com/</a:icon>
|
||||
</channel>
|
||||
</rss>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_091_Userland_Atom_10_Logo extends SimplePie_Feed_Image_Width_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data =
|
||||
'<rss version="0.91" xmlns:a="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<a:logo>http://example.com/</a:logo>
|
||||
</channel>
|
||||
</rss>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_091_Userland extends SimplePie_Feed_Image_Width_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data =
|
||||
'<rss version="0.91">
|
||||
<channel>
|
||||
<image>
|
||||
<url>http://example.com/</url>
|
||||
</image>
|
||||
</channel>
|
||||
</rss>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 88.0;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_091_Userland_Width extends SimplePie_Feed_Image_Width_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data =
|
||||
'<rss version="0.91">
|
||||
<channel>
|
||||
<image>
|
||||
<width>100</width>
|
||||
</image>
|
||||
</channel>
|
||||
</rss>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 100.0;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_092_Atom_10_Icon extends SimplePie_Feed_Image_Width_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data =
|
||||
'<rss version="0.92" xmlns:a="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<a:icon>http://example.com/</a:icon>
|
||||
</channel>
|
||||
</rss>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_092_Atom_10_Logo extends SimplePie_Feed_Image_Width_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data =
|
||||
'<rss version="0.92" xmlns:a="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<a:logo>http://example.com/</a:logo>
|
||||
</channel>
|
||||
</rss>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_092 extends SimplePie_Feed_Image_Width_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data =
|
||||
'<rss version="0.92">
|
||||
<channel>
|
||||
<image>
|
||||
<url>http://example.com/</url>
|
||||
</image>
|
||||
</channel>
|
||||
</rss>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 88.0;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_092_Width extends SimplePie_Feed_Image_Width_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data =
|
||||
'<rss version="0.92">
|
||||
<channel>
|
||||
<image>
|
||||
<width>100</width>
|
||||
</image>
|
||||
</channel>
|
||||
</rss>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 100.0;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_10_Atom_10_Icon extends SimplePie_Feed_Image_Width_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:icon>http://example.com/</a:icon>
|
||||
</channel>
|
||||
</rdf:RDF>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_10_Atom_10_Logo extends SimplePie_Feed_Image_Width_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:logo>http://example.com/</a:logo>
|
||||
</channel>
|
||||
</rdf:RDF>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_10 extends SimplePie_Feed_Image_Width_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/">
|
||||
<image>
|
||||
<url>http://example.com/</url>
|
||||
</image>
|
||||
</rdf:RDF>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_20_Atom_10_Icon extends SimplePie_Feed_Image_Width_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data =
|
||||
'<rss version="2.0" xmlns:a="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<a:icon>http://example.com/</a:icon>
|
||||
</channel>
|
||||
</rss>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_20_Atom_10_Logo extends SimplePie_Feed_Image_Width_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data =
|
||||
'<rss version="2.0" xmlns:a="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<a:logo>http://example.com/</a:logo>
|
||||
</channel>
|
||||
</rss>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_20 extends SimplePie_Feed_Image_Width_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data =
|
||||
'<rss version="2.0">
|
||||
<channel>
|
||||
<image>
|
||||
<url>http://example.com/</url>
|
||||
</image>
|
||||
</channel>
|
||||
</rss>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 88.0;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class SimplePie_Feed_Image_Width_Test_RSS_20_Width extends SimplePie_Feed_Image_Width_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data =
|
||||
'<rss version="2.0">
|
||||
<channel>
|
||||
<image>
|
||||
<width>100</width>
|
||||
</image>
|
||||
</channel>
|
||||
</rss>';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 100.0;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user