1
0
Fork 0

remove useless expect (already done by docstring)

pull/6159/head
Guillaume ZITTA 2017-02-14 17:37:40 +01:00
parent 921ffe741f
commit abf06913a2
1 changed files with 0 additions and 2 deletions

View File

@ -104,7 +104,6 @@ class ZipDownloaderTest extends TestCase
* @expectedExceptionMessage SystemUnzip Failed * @expectedExceptionMessage SystemUnzip Failed
*/ */
function testSystemUnzipOnlyFailed() { function testSystemUnzipOnlyFailed() {
$this->setExpectedException(\Exception::class);
$downloader = new TestDownloader($this->getMock('Composer\IO\IOInterface')); $downloader = new TestDownloader($this->getMock('Composer\IO\IOInterface'));
$e = new \Exception("SystemUnzip Failed"); $e = new \Exception("SystemUnzip Failed");
$downloader->setUp(FALSE, TRUE, NULL, $e); $downloader->setUp(FALSE, TRUE, NULL, $e);
@ -129,7 +128,6 @@ class ZipDownloaderTest extends TestCase
* @expectedExceptionMessage ZipArchive Failed * @expectedExceptionMessage ZipArchive Failed
*/ */
function testSystemUnzipFallbackFailed() { function testSystemUnzipFallbackFailed() {
$this->setExpectedException(\Exception::class);
$downloader = new TestDownloader($this->getMock('Composer\IO\IOInterface')); $downloader = new TestDownloader($this->getMock('Composer\IO\IOInterface'));
$e1 = new \Exception("ZipArchive Failed"); $e1 = new \Exception("ZipArchive Failed");
$e2 = new \Exception("SystemUnzip Failed"); $e2 = new \Exception("SystemUnzip Failed");