Skip to content

Commit

Permalink
[squash] Fix phpcs for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martialblog committed Jul 12, 2024
1 parent 3e46981 commit 1b5274a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/StrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,17 @@ public function testLimitWithSmallerString()

public function testLimitWithLongerStringAndSpecificLimit()
{
$this->assertSame('Lorem ipsu...', Str::limit('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 10));
$this->assertSame(
'Lorem ipsu...',
Str::limit('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 10)
);
}

public function testLimitWithLongerStringAndSpecificEnd()
{
$this->assertSame('L (...)', Str::limit('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 1, ' (...)'));
$this->assertSame(
'L (...)',
Str::limit('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 1, ' (...)')
);
}
}

0 comments on commit 1b5274a

Please sign in to comment.