Skip to content

Commit

Permalink
Debug Text::truncate failure
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 4, 2022
1 parent b18bdd9 commit 085ea71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/TestCase/Utility/TextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ public function testTruncateLegacy(): void
public function testTruncateTrimWidth(): void
{
$text = 'The quick brown fox jumps over the lazy dog';
var_dump(Text::truncate($text, 18, ['ellipsis' => '...', 'trimWidth' => false]));
$this->assertSame('The quick brown...', Text::truncate($text, 18, ['ellipsis' => '...', 'trimWidth' => false]));
$this->assertSame('The quick brown...', Text::truncate($text, 18, ['ellipsis' => '...', 'trimWidth' => true]));

Expand Down

0 comments on commit 085ea71

Please sign in to comment.