소스 검색

Check for the actual warning description

Alexey Kopytko 6 년 전
부모
커밋
aa6d138bdc
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      tests/Composer/Test/FactoryTest.php

+ 2 - 1
tests/Composer/Test/FactoryTest.php

@@ -25,7 +25,8 @@ class FactoryTest extends TestCase
         $ioMock = $this->getMockBuilder('Composer\IO\IOInterface')->getMock();
 
         $ioMock->expects($this->once())
-            ->method("writeError");
+            ->method("writeError")
+            ->with($this->equalTo('<warning>You are running Composer with SSL/TLS protection disabled.</warning>'));
 
         $config = $this
             ->getMockBuilder('Composer\Config')