public function testPostViaSocket() { $url = 'https://www.sofort.com/payment/notAvailable'; $SofortLibHttpSocket = new HttpSocket($url); $SofortLibHttpSocket->post('test'); $httpCode = $SofortLibHttpSocket->getHttpCode(); $this->assertTrue($httpCode['code'] === 404); $this->assertTrue($httpCode['message'] === '<errors><error><code>0404</code><message>URL not found ' . $url . '</message></error></errors>'); }