Skip to content
Snippets Groups Projects
Commit bef2441e authored by Henri-Damien LAURENT's avatar Henri-Damien LAURENT
Browse files

hotline#182365 : Orphee : Soap Client Responses should be brought to inspectorgadget

parent 46322abc
Branches
Tags
1 merge request!4804hotline#182365 : Orphee : Soap Client Responses should be brought to inspectorgadget
Pipeline #24956 passed with stage
in 47 minutes and 54 seconds
- correctif #182635 : Orphée : Amélioration des informations de diagnostic pour les appels webservices Orphée
\ No newline at end of file
......@@ -141,6 +141,11 @@ class Class_WebService_MappedSoapClient extends SoapClient {
throw $e;
}
}
public function __getLastResponse() :string {
return $this->__last_response ?? parent::__getLastResponse() ?? '';
}
}
?>
......@@ -80,6 +80,13 @@ class MappedSoapClientWithoutErrorTest extends MappedSoapClientTestCase {
$this->_soap_client->testing();
$this->assertTrue($this->_logger->methodHasBeenCalled('logSoap'));
}
/** @test */
public function getLastResponseShouldBeResponse() {
$this->_soap_client->testing();
$this->assertEquals($this->_response, $this->_soap_client->__getLastResponse());
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment