Permalink
Browse files

Merge pull request #6 from meldra/master

additional fixes for test assertations
  • Loading branch information...
2 parents b72320a + 22791fc commit 99ccf9ab30602ea62efbf7f250e027ad1f3a8654 @meldra meldra committed Dec 17, 2011
Showing with 4 additions and 5 deletions.
  1. +2 −2 samples/illformed_atom10.xml
  2. +1 −1 tests/MalformedFeedTest.php
  3. +1 −2 tests/atomValues.php
@@ -1,6 +1,6 @@
<!--
Description: entry author name
-Expect: bozo and entries[0]['author_detail']['name'] == u'Example author'
+Expect: bozo and entries[0]['author_detail']['name'] == u'Example author (me@example.com)'
-->
<feed xmlns="http://www.w3.org/2005/Atom">
<entry>
@@ -10,4 +10,4 @@ Expect: bozo and entries[0]['author_detail']['name'] == u'Example author'
<uri>http://example.com/</uri>
</author>
</entry>
-</feed
+</feed
@@ -20,7 +20,7 @@ function test_Tidy() {
$feed = new XML_Feed_Parser($file, false, true, true);
$entry = $feed->getEntryByOffset(0);
- $this->assertEquals($entry->author, 'Example author');
+ $this->assertEquals($entry->author, 'Example author (me@example.com)');
}
}
View
@@ -118,8 +118,7 @@ function test_entryAuthorURL()
function test_entryAuthorName()
{
- $value = 'Mark Pilgrim (f8dy@example.com)
-';
+ $value = 'Mark Pilgrim (f8dy@example.com)';
$this->assertEquals($value, $this->entry->author);
}

0 comments on commit 99ccf9a

Please sign in to comment.