public function testSpecificLoop() { $loopInterface = Mockery::mock('\\React\\EventLoop\\LibEventLoop'); $server = new Server($this->mockProcessManager, $this->mockPrimer, $loopInterface); $this->assertSame($loopInterface, $server->getLoop()); }