Skip to content

Commit

Permalink
PHPunit doesn't like an explanation with its @codeCoverageIgnore...
Browse files Browse the repository at this point in the history
  • Loading branch information
erayd committed Mar 8, 2017
1 parent 1fdb514 commit e1190b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/JsonSchema/Constraints/StringConstraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ private function strlen($string)
return mb_strlen($string, mb_detect_encoding($string));
}

return strlen($string); // @codeCoverageIgnore because mbstring is present on all test platforms
// mbstring is present on all test platforms, so strlen() can be ignored for coverage
return strlen($string); // @codeCoverageIgnore
}
}

0 comments on commit e1190b5

Please sign in to comment.