Tac Tacelosky
Tac Tacelosky
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...
yes. rector can likely make short work of this! BTW, the version is wrong here: https://github.com/samwilson/phpflickr/blob/6.0.0/src/PhpFlickr.php
I used php-cs-fixer to add return types, but tests are failing now because of those return types. Since 6.0 was just released, what do you think about tweaking the return...
Actually, I just fixed the return type. Where do I set the API key so that the tests can run?
> set them as the env vars FLICKR_API_KEY, FLICKR_API_SECRET, FLICKR_ACCESS_TOKEN, FLICKR_ACCESS_SECRET. I think that's the better way, to avoid accidentally checking in secrets into github. But really these test calls...
I was able to get it to work with gmail by changing the config and signing up for an app password: ```yaml gmail: imap_path: "{imap.gmail.com:993/imap/ssl}INBOX" username: "[email protected]" password: "" ```
I think I've figured it out. I can submit PRs to help others and my future self with the following huge disconnect: $client->getIndex($uId) makes an API call to get information...
Yep, logged in now, thanks!
It seems that it's available on properties, but no longer on classes.
I think the kernel is required for configuring a symfony bundle.