public function testShift() { $collection = new Collection(); $this->assertNull($collection->shift()); $collection->pushMany(['a', 'b']); $this->assertSame('a', $collection->shift()); $this->assertSame(['b'], $collection->toArray()); }