markTestSkipped('Not supported on your platform (outdated HHVM?)'); } } public function testGetPortWillBePassedThroughToTcpServer() { $tcp = $this->getMockBuilder('React\Socket\Server')->disableOriginalConstructor()->getMock(); $tcp->expects($this->once())->method('getPort')->willReturn(1234); $loop = $this->getMock('React\EventLoop\LoopInterface'); $server = new SecureServer($tcp, $loop, array()); $this->assertEquals(1234, $server->getPort()); } public function testShutdownWillBePassedThroughToTcpServer() { $tcp = $this->getMockBuilder('React\Socket\Server')->disableOriginalConstructor()->getMock(); $tcp->expects($this->once())->method('shutdown'); $loop = $this->getMock('React\EventLoop\LoopInterface'); $server = new SecureServer($tcp, $loop, array()); $server->shutdown(); } }