From aa6d138bdca5c9d2b448d3a583bba4d2213c4806 Mon Sep 17 00:00:00 2001 From: Alexey Kopytko Date: Fri, 26 Oct 2018 12:17:38 +0900 Subject: [PATCH] Check for the actual warning description --- tests/Composer/Test/FactoryTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Composer/Test/FactoryTest.php b/tests/Composer/Test/FactoryTest.php index a6ba01565..34d4518bb 100644 --- a/tests/Composer/Test/FactoryTest.php +++ b/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('You are running Composer with SSL/TLS protection disabled.')); $config = $this ->getMockBuilder('Composer\Config')