Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Re-enable test to make sure we only get images in the current level (…

…feed-level, or entry-level)

git-svn-id: http://svn.php.net/repository/pear/packages/XML_Feed_Parser/trunk@254601 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit fbe37f55188b0bf655afd0bd73fea040906cdbe4 1 parent 9580d04
James Stewart authored
Showing with 10 additions and 9 deletions.
  1. +10 −9 tests/rss2Values.php
View
19 tests/rss2Values.php
@@ -18,7 +18,7 @@ function test_feedNumberItems()
$value = 4;
$this->assertEquals($value, $this->feed->numberEntries);
}
-
+
function test_feedTitle()
{
$value = "Liftoff News";
@@ -132,7 +132,7 @@ function test_entryIdEquivalence()
$value = "http://liftoff.msfc.nasa.gov/2003/05/27.html#item571";
$this->assertEquals($value, $this->entry->id);
}
-
+
function test_entryContent()
{
$value = "<p>Test content</p>";
@@ -155,16 +155,17 @@ function test_imageNodeInDifferentNamespaces()
</channel>
</rss>';
$parsed = new XML_Feed_Parser($value);
+
$this->assertEquals("http://www.herbertschuette.de/Bilder/logo5.jpg", $parsed->image['url']);
}
- // function test_imageNodeAtDifferentLevels()
- // {
- // $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
- // $value = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . "rss2sample.xml");
- // $parsed = new XML_Feed_Parser($value);
- // $this->assertEquals(false, $parsed->image);
- // }
+ function test_imageNodeAtDifferentLevels()
+ {
+ $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
+ $value = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . "rss2sample.xml");
+ $parsed = new XML_Feed_Parser($value);
+ $this->assertEquals(false, $parsed->image);
+ }
function test_handlesEmptyPubdates()
{
Please sign in to comment.
Something went wrong with that request. Please try again.