We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48351fc commit 1b0050cCopy full SHA for 1b0050c
1 file changed
tests/SecureServerTest.php
@@ -17,13 +17,13 @@ public function setUp()
17
public function testGetAddressWillBePassedThroughToTcpServer()
18
{
19
$tcp = $this->getMockBuilder('React\Socket\ServerInterface')->getMock();
20
- $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');
21
22
$loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock();
23
24
$server = new SecureServer($tcp, $loop, array());
25
26
- $this->assertEquals('127.0.0.1:1234', $server->getAddress());
+ $this->assertEquals('tls://127.0.0.1:1234', $server->getAddress());
27
}
28
29
public function testGetAddressWillReturnNullIfTcpServerReturnsNull()
0 commit comments