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