From c609d70a0eed082462fc40a8446e81e58cad315a Mon Sep 17 00:00:00 2001 From: Sean Fisher Date: Tue, 26 Nov 2024 14:15:43 -0500 Subject: [PATCH] Provide another example validating the stringable explode and then re-imploding --- tests/Support/CollectionTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Support/CollectionTest.php b/tests/Support/CollectionTest.php index ff8dca08..48c95315 100644 --- a/tests/Support/CollectionTest.php +++ b/tests/Support/CollectionTest.php @@ -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( '-' ), + ); } /**