Browse Source

Removed test for non-string file name check

MakiCode 9 years ago
parent
commit
1c0b9cd65f

+ 1 - 1
src/Composer/Package/Archiver/ArchiveManager.php

@@ -108,7 +108,7 @@ class ArchiveManager
         if (empty($format)) {
             throw new \InvalidArgumentException('Format must be specified');
         }
-        
+
         // Search for the most appropriate archiver
         $usableArchiver = null;
         foreach ($this->archivers as $archiver) {

+ 1 - 10
tests/Composer/Test/Package/Archiver/ArchiveManagerTest.php

@@ -79,16 +79,7 @@ class ArchiveManagerTest extends ArchiverTest
 
         unlink($target);
     }
-
-    public function testNonStringFileName()
-    {
-        $this->setExpectedException('InvalidArgumentException');
-
-        $package = $this->setupPackage();
-
-        $this->manager->archive($package, 'tar', $this->targetDir, array());
-    }
-
+    
     protected function getTargetName(PackageInterface $package, $format, $fileName = null)
     {
         if(null === $fileName) {