ReviewOS

also looking at this

meemalabs/meema-client-php

Add More Tests

#42
Merged glennmichael123 wants to merge add-more-tests into main
6 files +170 -26
src/Models/Favorite.phpmodified+6-4
Changes to src/Models/Favorite.php
@@ -51,12 +51,14 @@ class Favorite
5151 return $this->all();
5252 }
5353
54 if (! is_int($id)) {
55 throw new InvalidFormatException();
56 }
57
5854 $ids = is_array($id) ? $id : func_get_args();
5955
56 foreach ($ids as $id) {
57 if (! is_int($id)) {
58 throw new InvalidFormatException();
59 }
60 }
61
6062 return $this->client->request('GET', 'favorites', ['favorite_ids' => $ids]);
6163 }
6264