Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 72bac77

Browse files
committed
Merge branch 'cebe-patch-1' into 9.0
2 parents bb0925f + 11ea88e commit 72bac77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Constraint/Page.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ protected function failureDescription($pageContent) : string
5555
{
5656
$message = $this->uriMessage('on page');
5757
$message->append("\n--> ");
58-
$message->append(substr($pageContent, 0, 300));
59-
if (strlen($pageContent) > 300) {
58+
$message->append(mb_substr($pageContent, 0, 300, 'utf-8'));
59+
if (mb_strlen($pageContent, 'utf-8') > 300) {
6060
$debugMessage = new Message(
6161
"[Content too long to display. See complete response in '" . codecept_output_dir() . "' directory]"
6262
);

0 commit comments

Comments
 (0)