From abf06913a21a2978c1ee54a3f1cc93aef8eb472e Mon Sep 17 00:00:00 2001 From: Guillaume ZITTA Date: Tue, 14 Feb 2017 17:37:40 +0100 Subject: [PATCH] remove useless expect (already done by docstring) --- tests/Composer/Test/Downloader/ZipDownloaderTest.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/Composer/Test/Downloader/ZipDownloaderTest.php b/tests/Composer/Test/Downloader/ZipDownloaderTest.php index b5ca6a33f..d2204d682 100644 --- a/tests/Composer/Test/Downloader/ZipDownloaderTest.php +++ b/tests/Composer/Test/Downloader/ZipDownloaderTest.php @@ -104,7 +104,6 @@ class ZipDownloaderTest extends TestCase * @expectedExceptionMessage SystemUnzip Failed */ function testSystemUnzipOnlyFailed() { - $this->setExpectedException(\Exception::class); $downloader = new TestDownloader($this->getMock('Composer\IO\IOInterface')); $e = new \Exception("SystemUnzip Failed"); $downloader->setUp(FALSE, TRUE, NULL, $e); @@ -129,7 +128,6 @@ class ZipDownloaderTest extends TestCase * @expectedExceptionMessage ZipArchive Failed */ function testSystemUnzipFallbackFailed() { - $this->setExpectedException(\Exception::class); $downloader = new TestDownloader($this->getMock('Composer\IO\IOInterface')); $e1 = new \Exception("ZipArchive Failed"); $e2 = new \Exception("SystemUnzip Failed");