protected function getSocketMock() { $this->mockGenerator->orphanize('__construct'); $this->mockGenerator->shuntParentClassCalls(); return new \mock\React\Socket\Server(); }