diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-12 23:26:59 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-12 23:26:59 +0200 |
commit | 937f025137cf511eba332260ea1ae876090b7d43 (patch) | |
tree | 1e35307731960700cddea26e0e4b0621ebb251c0 /tests/unit/utility | |
parent | 2dd8827768379ef8a96611b7b702464da8fd7349 (diff) |
remove more unused code
Diffstat (limited to 'tests/unit/utility')
-rw-r--r-- | tests/unit/utility/FaviconFetcherTest.php | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/unit/utility/FaviconFetcherTest.php b/tests/unit/utility/FaviconFetcherTest.php index 3dbb441f0..833154639 100644 --- a/tests/unit/utility/FaviconFetcherTest.php +++ b/tests/unit/utility/FaviconFetcherTest.php @@ -242,13 +242,11 @@ class FaviconFetcherTest extends \PHPUnit_Framework_TestCase { $html = $this->getFaviconHTML($faviconPath); $url = ''; - $pageMock = $this->getFileMock($html); - $pngMock = $this->getFileMock($this->png); $this->fileFactory->expects($this->never()) ->method('getFile'); - $favicon = $this->fetcher->fetch($url); + $this->fetcher->fetch($url); } public function testInvalidHostnameDoesNotOpenFile() { @@ -256,13 +254,11 @@ class FaviconFetcherTest extends \PHPUnit_Framework_TestCase { $html = $this->getFaviconHTML($faviconPath); $url = "a.b_c.de"; - $pageMock = $this->getFileMock($html); - $pngMock = $this->getFileMock($this->png); $this->fileFactory->expects($this->never()) ->method('getFile'); - $favicon = $this->fetcher->fetch($url); + $this->fetcher->fetch($url); } @@ -271,13 +267,11 @@ class FaviconFetcherTest extends \PHPUnit_Framework_TestCase { $html = $this->getFaviconHTML($faviconPath); $url = "http://a.b_c.de"; - $pageMock = $this->getFileMock($html); - $pngMock = $this->getFileMock($this->png); $this->fileFactory->expects($this->never()) ->method('getFile'); - $favicon = $this->fetcher->fetch($url); + $this->fetcher->fetch($url); } |