Way to use JSON offline?

6 views
Skip to first unread message

Cassidy

unread,
Mar 20, 2010, 1:20:08 PM3/20/10
to Twitter Development Talk
Anyone know a way to just use a local JSON file, taken from a twitter
API call, to test an app with in PHP? Right now I'm testing with
actual calls to the API, but I don't want to have to keep tracking how
many calls I've made within the hour.

Thanks!

Andrew Badera

unread,
Mar 20, 2010, 2:08:20 PM3/20/10
to twitter-deve...@googlegroups.com
Read up on the concept of "mocking."

∞ Andy Badera
+1 518-641-1280 Google Voice
∞ This email is: [ ] bloggable [x] ask first [ ] private
∞ Google me: http://www.google.com/search?q=andrew%20badera

> To unsubscribe from this group, send email to twitter-development-talk+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
>

jmathai

unread,
Mar 20, 2010, 7:36:35 PM3/20/10
to Twitter Development Talk
More specifically, try phpunit's mock object framework.

http://www.phpunit.de/manual/3.0/en/mock-objects.html

On Mar 20, 11:08 am, Andrew Badera <and...@badera.us> wrote:
> Read up on the concept of "mocking."
>
> ∞ Andy Badera
> ∞ +1 518-641-1280 Google Voice
> ∞ This email is: [ ] bloggable [x] ask first [ ] private
> ∞ Google me:http://www.google.com/search?q=andrew%20badera
>

Reply all
Reply to author
Forward
0 new messages