diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index 4c3591691..b2403c2e9 100644 --- a/tests/integration/features/bootstrap/FeatureContext.php +++ b/tests/integration/features/bootstrap/FeatureContext.php @@ -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');