public function testApiGetLocalEndpoint_ReturnsEndpoint() { $socket = $this->createSocketListenerMock($this->tempSocketRemoteAddress()); $this->assertRegExp('#^tcp://(([0-9]*?)\\.){3}([0-9]*?):([0-9]*?)$#si', $socket->getLocalEndpoint()); }