transaction(function() use ($number) { $ret = []; foreach (range(1, $number) as $_) { $ret []= $this->mockSingle(); } return $ret; }); } }