Example #1
0
 /** @test */
 public function it_can_iterate_over_a_collection_using_a_function()
 {
     $collection = new Collection(['foo' => 'Foo', 'bar' => 'Bar']);
     $collection->each(function ($v, $k) {
         $this->assertNotEmpty($v);
         $this->assertNotEmpty($k);
     });
 }