Skip to content

Commit

Permalink
Fix StrTest
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Jan 16, 2025
1 parent 716f1f8 commit 7c7e4a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Support/StrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ public function testStrExcerpt() {
$this->assertSame( 'This is a...', Str::excerpt( 'This is a beautiful morning', 'this', [ 'radius' => 5 ] ) );
$this->assertSame( '...iful morning', Str::excerpt( 'This is a beautiful morning', 'morning', [ 'radius' => 5 ] ) );
$this->assertNull( Str::excerpt( 'This is a beautiful morning', 'day' ) );
$this->assertSame( '...is a beautiful! more...', Str::excerpt( 'This is a beautiful! morning', 'Beautiful', [ 'radius' => 5 ] ) );
$this->assertSame( '...is a beautiful? more...', Str::excerpt( 'This is a beautiful? morning', 'beautiful', [ 'radius' => 5 ] ) );
$this->assertSame( '...is a beautiful! more...', Str::excerpt( 'This is a beautiful! morning', 'Beautiful', [ 'radius' => 6 ] ) );
$this->assertSame( '...is a beautiful? more...', Str::excerpt( 'This is a beautiful? morning', 'beautiful', [ 'radius' => 6 ] ) );
$this->assertSame( '', Str::excerpt( '', '', [ 'radius' => 0 ] ) );
$this->assertSame( 'a', Str::excerpt( 'a', 'a', [ 'radius' => 0 ] ) );
$this->assertSame( '...b...', Str::excerpt( 'abc', 'B', [ 'radius' => 0 ] ) );
Expand Down

0 comments on commit 7c7e4a8

Please sign in to comment.