phpflickr
phpflickr copied to clipboard
does testing need an API key?
I'm getting a lot of skipped tests, so I need to set an API key to run them? Does it make calls into Flickr, or are they mocked?
It does need a key, because it makes actual calls to Flickr. It used to be possible to have a test account, but a few years ago they started deleting those.
We could mock the responses, but I wonder if it's worth it, considering most of the complexity here is in making sure that e.g. we have the correct parameter names.
I do think mocking the tests is the way to go, but it's such a pain. I'm trying to learn how to do that, since packages wrapping API calls are so valuable.