summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-10-04 11:30:09 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-10-04 11:30:09 +0200
commit96c7439c7372d603e36412c39d6b2b8948565199 (patch)
tree8fd7d1bf81b0000538c85a3a5b849eea47f52c00 /tests
parent9c5bd1784ccfff00c8031ff03446b4ad7c5131be (diff)
ignore zendxml result
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/articleenhancer/XPathArticleEnhancerTest.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/unit/articleenhancer/XPathArticleEnhancerTest.php b/tests/unit/articleenhancer/XPathArticleEnhancerTest.php
index bc6b737ae..7756c168a 100644
--- a/tests/unit/articleenhancer/XPathArticleEnhancerTest.php
+++ b/tests/unit/articleenhancer/XPathArticleEnhancerTest.php
@@ -60,7 +60,7 @@ class XPathArticleEnhancerTest extends \PHPUnit_Framework_TestCase {
'/explosm.net\/shorts/' => '//*[@id=\'maincontent\']/div/div',
'/explosm.net\/all/' => '//body/*',
'/themerepublic.net/' => '//*[@class=\'post hentry\']'
- ],
+ ],
$this->config
);
$this->redirects = 5;
@@ -120,7 +120,7 @@ class XPathArticleEnhancerTest extends \PHPUnit_Framework_TestCase {
'/explosm.net\/shorts/' => '//*[@id=\'maincontent\']/div/div',
'/explosm.net\/all/' => '//body/*',
'/themerepublic.net/' => '//*[@class=\'post hentry\']'
- ],
+ ],
$this->config
);
@@ -160,7 +160,7 @@ class XPathArticleEnhancerTest extends \PHPUnit_Framework_TestCase {
$this->assertEquals($item, $this->testEnhancer->enhance($item));
}
-
+
public function testDoesModifiyArticlesThatMatch() {
$file = new \stdClass;
$file->headers = ["content-type"=>"text/html; charset=utf-8"];
@@ -370,7 +370,11 @@ class XPathArticleEnhancerTest extends \PHPUnit_Framework_TestCase {
->will($this->returnValue($file));
$result = $this->testEnhancer->enhance($item);
- $this->assertEquals('<img src="http://www.url.com/absolute/url.png"><a target="_blank" href="mailto:test@testsite.com">mail</a>', $result->getBody());
+ $this->assertEquals(
+ '<img src="http://www.url.com/absolute/url.png">' .
+ '<a target="_blank" href="mailto:test@testsite.com">mail</a>',
+ $result->getBody()
+ );
}
}