Skip to content

Commit

Permalink
Ignore code coverage for untestable edge case
Browse files Browse the repository at this point in the history
Co-authored-by: Weston Ruter <[email protected]>
  • Loading branch information
schlessera and westonruter authored Mar 16, 2021
1 parent 61b04d2 commit f8e0bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dom/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ private function adaptEncoding($source)
// Guessing the encoding seems to have failed, so we assume UTF-8 instead.
// In my testing, this was not possible as long as one ISO-8859-x is in the detection order.
if (empty($this->originalEncoding)) {
$this->originalEncoding = Encoding::AMP;
$this->originalEncoding = Encoding::AMP; // @codeCoverageIgnore
}

$this->originalEncoding = $this->sanitizeEncoding($this->originalEncoding);
Expand Down

0 comments on commit f8e0bb0

Please sign in to comment.