Skip to content

Commit

Permalink
Update misleading test for tls:// server URIs
Browse files Browse the repository at this point in the history
  • Loading branch information
the-eater authored and clue committed Oct 13, 2017
1 parent 48351fc commit 1b0050c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/SecureServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1b0050c

Please sign in to comment.