Skip to content

Commit

Permalink
debug: print problematic document
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz committed Jun 26, 2024
1 parent 50a6b27 commit b34e896
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/integration/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@ public function iSendAPostRequestToWithTheFollowingData($url,
public function theResponseShouldBeASamlRedirectPageThatGetsSubmitted() {
$responseBody = $this->response->getBody();
$domDocument = new DOMDocument();
$domDocument->loadHTML($responseBody);
$loaded = $domDocument->loadHTML($responseBody);
if (!$loaded) {
error_log(sprintf('Could not load expected HTML document: %s', $responseBody));
}
$xpath = new DOMXpath($domDocument);
$postData = [];
$inputElements = $xpath->query('//input');
Expand Down

0 comments on commit b34e896

Please sign in to comment.