Jordi Boggiano hace 12 años
padre
commit
93d37833dc
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      tests/Composer/Test/Util/StreamContextFactoryTest.php

+ 2 - 2
tests/Composer/Test/Util/StreamContextFactoryTest.php

@@ -126,9 +126,9 @@ class StreamContextFactoryTest extends \PHPUnit_Framework_TestCase
             )), $options);
         } else {
             try {
-                StreamContextFactory::getContext();
+                StreamContextFactory::getContext('http://example.org');
                 $this->fail();
-            } catch (\Exception $e) {
+            } catch (\RuntimeException $e) {
                 $this->assertInstanceOf('RuntimeException', $e);
             }
         }