protected function formatSVRLFailure(DOMElement $failedAssert) { $location = $failedAssert->getAttribute('location'); return (strlen($location) ? $location . ': ' : '') . $failedAssert->textContent; }