Skip to content

Commit 57befc8

Browse files
committed
Use strwidth() in test_column_value_too_long_with_multibytes.
1 parent 4bd13bc commit 57befc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test-table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function test_column_value_too_long_with_multibytes() {
5252
$out = $table->getDisplayLines();
5353
print_r( $out );
5454
for ( $i = 0; $i < count( $out ); $i++ ) {
55-
$this->assertEquals( $constraint_width, mb_strwidth( $out[$i] ) + 1 );
55+
$this->assertEquals( $constraint_width, \cli\strwidth( $out[$i] ) + 1 );
5656
}
5757
}
5858

0 commit comments

Comments
 (0)