From b5f4871da2218a3bd8e0b179720db1008beb5dfb Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sat, 4 Oct 2014 18:22:12 +0200 Subject: further cleanup --- .../unit/articleenhancer/XPathArticleEnhancerTest.php | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'tests/unit') diff --git a/tests/unit/articleenhancer/XPathArticleEnhancerTest.php b/tests/unit/articleenhancer/XPathArticleEnhancerTest.php index 2f6f5688e..e7b3d19dd 100644 --- a/tests/unit/articleenhancer/XPathArticleEnhancerTest.php +++ b/tests/unit/articleenhancer/XPathArticleEnhancerTest.php @@ -127,7 +127,7 @@ class XPathArticleEnhancerTest extends \PHPUnit_Framework_TestCase { ->will($this->returnValue($file)); $result = $this->testEnhancer->enhance($item); - $this->assertEquals('hiho', $result->getBody()); + $this->assertEquals('
hiho
', $result->getBody()); } @@ -156,7 +156,8 @@ class XPathArticleEnhancerTest extends \PHPUnit_Framework_TestCase { ->will($this->returnValue($file)); $result = $this->testEnhancer->enhance($item); - $this->assertEquals('
hiho
rawr
', $result->getBody()); + $this->assertEquals('
hiho
rawr
', + $result->getBody()); } @@ -260,7 +261,11 @@ class XPathArticleEnhancerTest extends \PHPUnit_Framework_TestCase { ->will($this->returnValue($file)); $result = $this->testEnhancer->enhance($item); - $this->assertEquals('linklink2', $result->getBody()); + $this->assertEquals('
' . + 'link' . + 'link2' . + '' . + '
', $result->getBody()); } public function testTransformRelativeUrlSpecials() { @@ -285,7 +290,9 @@ class XPathArticleEnhancerTest extends \PHPUnit_Framework_TestCase { ->will($this->returnValue($file)); $result = $this->testEnhancer->enhance($item); - $this->assertEquals('', $result->getBody()); + $this->assertEquals( + '
', + $result->getBody()); } public function testDontTransformAbsoluteUrlsAndMails() { @@ -312,8 +319,10 @@ class XPathArticleEnhancerTest extends \PHPUnit_Framework_TestCase { $result = $this->testEnhancer->enhance($item); $this->assertEquals( + '
' . '' . - 'mail', + 'mail' . + '
', $result->getBody() ); } -- cgit v1.2.3