public function testApiGetLoop_ReturnsReactLoop() { $react = $this->createApiMethodMock('getLoop', function () { return $this->getMock(LoopInterface::class); }); $this->assertInstanceOf(ReactLoopInterface::class, $react->getLoop()); }