unsplash / unsplash-php

👻 Official PHP wrapper for the Unsplash API
MIT License
415 stars 74 forks source link

Detect and report rate limit errors. #52

Closed aaronklaassen closed 7 years ago

aaronklaassen commented 7 years ago

Closes #48.

The rate limit exceeded message isn't in an errors array like other API error messages (which is a separate issue...), and so wouldn't be output properly in the exception message.

aaronklaassen commented 7 years ago

Travis failure here was because it was using the global travis phpunit (an incompatible version, apparently), rather than the one in vendor.