remove getResponseXml

This commit is contained in:
amrita
2024-11-28 14:57:07 +05:45
parent f58f348466
commit e76ba90bee
9 changed files with 30 additions and 61 deletions
@@ -1032,26 +1032,6 @@ class FeatureContext extends BehatVariablesContext {
return $previousServer;
}
/**
* Parses the response as XML
*
* @param ResponseInterface|null $response
* @param string|null $exceptionText text to put at the front of exception messages
*
* @return SimpleXMLElement
* @throws Exception
*/
public function getResponseXml(?ResponseInterface $response = null, ?string $exceptionText = ''): SimpleXMLElement {
if ($response === null) {
$response = $this->response;
}
if ($exceptionText === '') {
$exceptionText = __METHOD__;
}
return HttpRequestHelper::getResponseXml($response, $exceptionText);
}
/**
* @param JsonSchema $schemaObj
*