public function testApiGetRemotePort_ReturnsPort()
{
$server = stream_socket_server($this->tempSocketRemoteAddress());
$socket = $this->createSocketMock($this->tempSocketRemoteAddress());
$pattern = '#^([0-9]*?)$#si';
$this->assertRegExp($pattern, $socket->getRemotePort());
}