From ce8ae5088c54fc35488700db9c92e4d4ea6b19f6 Mon Sep 17 00:00:00 2001 From: Melissa Draper Date: Thu, 15 Dec 2011 01:26:24 +1300 Subject: [PATCH 1/2] Fix expectations for illformed sample author+email assertation --- samples/illformed_atom10.xml | 4 ++-- tests/MalformedFeedTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/illformed_atom10.xml b/samples/illformed_atom10.xml index 6121868..339b490 100755 --- a/samples/illformed_atom10.xml +++ b/samples/illformed_atom10.xml @@ -1,6 +1,6 @@ @@ -10,4 +10,4 @@ Expect: bozo and entries[0]['author_detail']['name'] == u'Example author' http://example.com/ -getEntryByOffset(0); - $this->assertEquals($entry->author, 'Example author'); + $this->assertEquals($entry->author, 'Example author (me@example.com)'); } } From 22791fc438e3a1df6763c4116479630094065dba Mon Sep 17 00:00:00 2001 From: Melissa Draper Date: Thu, 15 Dec 2011 01:26:54 +1300 Subject: [PATCH 2/2] Remove impossible linebreak from author+email line --- tests/atomValues.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/atomValues.php b/tests/atomValues.php index f455a4c..d2c9c17 100644 --- a/tests/atomValues.php +++ b/tests/atomValues.php @@ -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); }