diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-21 18:19:23 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-21 18:19:23 +0200 |
commit | 66c73a96ac2dda076bcfe0dc0a1ca2a7e169149d (patch) | |
tree | dc0318fa459e4f313217ee38e4bc63524513d721 /tests/unit/utility | |
parent | f5e64d35c05b14016eb4fffff7199386a97a9b43 (diff) |
first try to set indention limit at 80 characters in php
Diffstat (limited to 'tests/unit/utility')
-rw-r--r-- | tests/unit/utility/FaviconFetcherTest.php | 6 | ||||
-rw-r--r-- | tests/unit/utility/OPMLExporterTest.php | 37 |
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') + ); } |