Skip to content

Commit

Permalink
Provide another example validating the stringable explode and then re…
Browse files Browse the repository at this point in the history
…-imploding
  • Loading branch information
srtfisher committed Nov 26, 2024
1 parent f6ecef1 commit c609d70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Support/CollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1768,6 +1768,11 @@ public function testImplodeStringable($collection)

$this->assertSame( 'example string here', $data->implode( ' ' ) );
$this->assertSame( 'example,string,here', $data->implode( ',' ) );

$this->assertEquals(
'another-example-here',
Stringable::make( 'another example here' )->explode( ' ' )->implode( '-' ),
);
}

/**
Expand Down

0 comments on commit c609d70

Please sign in to comment.