瀏覽代碼

Fix tests

Jordi Boggiano 12 年之前
父節點
當前提交
93d37833dc
共有 1 個文件被更改,包括 2 次插入2 次删除
  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);
             }
         }