summaryrefslogtreecommitdiffstats
path: root/tests/unit/utility
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/utility')
-rw-r--r--tests/unit/utility/FaviconFetcherTest.php6
-rw-r--r--tests/unit/utility/OPMLExporterTest.php37
2 files changed, 29 insertions, 14 deletions
diff --git a/tests/unit/utility/FaviconFetcherTest.php b/tests/unit/utility/FaviconFetcherTest.php
index e73510a13..4ee823636 100644
--- a/tests/unit/utility/FaviconFetcherTest.php
+++ b/tests/unit/utility/FaviconFetcherTest.php
@@ -94,7 +94,8 @@ class FaviconFetcherTest extends \PHPUnit_Framework_TestCase {
$favicon = $this->fetcher->fetch($url);
- $this->assertEquals('http://google.com/owncloud/core/img/favicon.png', $favicon);
+ $this->assertEquals('http://google.com/owncloud/core/img/favicon.png',
+ $favicon);
}
@@ -163,7 +164,8 @@ class FaviconFetcherTest extends \PHPUnit_Framework_TestCase {
$favicon = $this->fetcher->fetch($url);
- $this->assertEquals('http://google.com/owncloud/core/img/favicon.png', $favicon);
+ $this->assertEquals('http://google.com/owncloud/core/img/favicon.png',
+ $favicon);
}
diff --git a/tests/unit/utility/OPMLExporterTest.php b/tests/unit/utility/OPMLExporterTest.php
index 5d6f849fb..416d476a8 100644
--- a/tests/unit/utility/OPMLExporterTest.php
+++ b/tests/unit/utility/OPMLExporterTest.php
@@ -69,10 +69,14 @@ class OPMLExporterTest extends \PHPUnit_Framework_TestCase {
$elems = $xpath->query('/opml/body/outline');
$this->assertEquals(2, $elems->length);
- $this->assertEquals($this->folder1->getName(), $this->getAttribute($elems->item(0), 'title'));
- $this->assertEquals($this->folder1->getName(), $this->getAttribute($elems->item(0), 'text'));
- $this->assertEquals($this->folder2->getName(), $this->getAttribute($elems->item(1), 'title'));
- $this->assertEquals($this->folder2->getName(), $this->getAttribute($elems->item(1), 'text'));
+ $this->assertEquals($this->folder1->getName(),
+ $this->getAttribute($elems->item(0), 'title'));
+ $this->assertEquals($this->folder1->getName(),
+ $this->getAttribute($elems->item(0), 'text'));
+ $this->assertEquals($this->folder2->getName(),
+ $this->getAttribute($elems->item(1), 'title'));
+ $this->assertEquals($this->folder2->getName(),
+ $this->getAttribute($elems->item(1), 'text'));
}
@@ -82,10 +86,14 @@ class OPMLExporterTest extends \PHPUnit_Framework_TestCase {
$elems = $xpath->query('//outline');
$this->assertEquals(1, $elems->length);
- $this->assertEquals($this->feed1->getTitle(), $this->getAttribute($elems->item(0), 'title'));
- $this->assertEquals($this->feed1->getTitle(), $this->getAttribute($elems->item(0), 'text'));
- $this->assertEquals($this->feed1->getUrl(), $this->getAttribute($elems->item(0), 'xmlUrl'));
- $this->assertEquals('', $this->getAttribute($elems->item(0), 'htmlUrl'));
+ $this->assertEquals($this->feed1->getTitle(),
+ $this->getAttribute($elems->item(0), 'title'));
+ $this->assertEquals($this->feed1->getTitle(),
+ $this->getAttribute($elems->item(0), 'text'));
+ $this->assertEquals($this->feed1->getUrl(),
+ $this->getAttribute($elems->item(0), 'xmlUrl'));
+ $this->assertEquals('',
+ $this->getAttribute($elems->item(0), 'htmlUrl'));
}
@@ -100,10 +108,15 @@ class OPMLExporterTest extends \PHPUnit_Framework_TestCase {
$this->assertEquals(3, $elems->length);
- $this->assertEquals($this->folder1->getName(), $this->getAttribute($elems->item(0), 'title'));
- $this->assertEquals($this->folder2->getName(), $this->getAttribute($elems->item(1), 'text'));
- $this->assertEquals($this->feed1->getUrl(), $this->getAttribute($elems->item(2), 'xmlUrl'));
- $this->assertEquals($this->feed2->getLink(), $this->getAttribute($elems->item(1)->childNodes->item(0), 'htmlUrl'));
+ $this->assertEquals($this->folder1->getName(),
+ $this->getAttribute($elems->item(0), 'title'));
+ $this->assertEquals($this->folder2->getName(),
+ $this->getAttribute($elems->item(1), 'text'));
+ $this->assertEquals($this->feed1->getUrl(),
+ $this->getAttribute($elems->item(2), 'xmlUrl'));
+ $this->assertEquals($this->feed2->getLink(),
+ $this->getAttribute($elems->item(1)->childNodes->item(0), 'htmlUrl')
+ );
}