box/shmock — pull request #6 by asheepapart (2014-05-29 20:41:52+00:00)
Title: return_consecutively should keep returning last value when requested

Was failing if called more than n times, where n = count($array_of_values)

Also added some more guidance in the phpdoc

This also deals with the (unlikely) case in which $array_of_values = []