public function testImplode() { $data = new Collection([['name' => 'taylor', 'email' => 'foo'], ['name' => 'dayle', 'email' => 'bar']]); $this->assertEquals('foobar', $data->implode('email')); $this->assertEquals('foo,bar', $data->implode('email', ',')); $data = new Collection(['taylor', 'dayle']); $this->assertEquals('taylordayle', $data->implode('')); $this->assertEquals('taylor,dayle', $data->implode(',')); }