setupHttpMockHandler(); } /** * Test for issue https://github.com/friendica/friendica/issues/10473#issuecomment-907749093 */ public function testInvalidURI() { $this->httpRequestHandler->setHandler(new MockHandler([ new Response(301, ['Location' => 'https:///']), ])); $httpClient = DI::httpClient(); $httpClient->get('https:///'); self::assertEquals(1,1); } }