public function testApiConstructor_CreatesInstance() { $socket = $this->createSocketListenerMock(); $this->assertInstanceOf(SocketListener::class, $socket); $this->assertInstanceOf(SocketListenerInterface::class, $socket); }