Example #1
0
 public function testShiftCollection()
 {
     $collection = new Collection(['one', 'two', 'three', 'four']);
     $this->assertEquals('one', $collection->shift());
     $this->assertEquals(['two', 'three', 'four'], $collection->all()->toArray());
 }