From 1b0050caf61c2916831dc3877b85bcd91a1f937c Mon Sep 17 00:00:00 2001 From: eater Date: Thu, 12 Oct 2017 11:40:59 +0200 Subject: [PATCH] Update misleading test for tls:// server URIs --- tests/SecureServerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/SecureServerTest.php b/tests/SecureServerTest.php index b395fdff..92c641fe 100644 --- a/tests/SecureServerTest.php +++ b/tests/SecureServerTest.php @@ -17,13 +17,13 @@ public function setUp() public function testGetAddressWillBePassedThroughToTcpServer() { $tcp = $this->getMockBuilder('React\Socket\ServerInterface')->getMock(); - $tcp->expects($this->once())->method('getAddress')->willReturn('127.0.0.1:1234'); + $tcp->expects($this->once())->method('getAddress')->willReturn('tcp://127.0.0.1:1234'); $loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock(); $server = new SecureServer($tcp, $loop, array()); - $this->assertEquals('127.0.0.1:1234', $server->getAddress()); + $this->assertEquals('tls://127.0.0.1:1234', $server->getAddress()); } public function testGetAddressWillReturnNullIfTcpServerReturnsNull()