oauth2-client/test/src
Alexandru Guzinschi cb300f7b6c [Fix] Invalid JSON in response trigger fatal error
If the server responded with an invalid JSON for `getAccessToken()`,
$result variable will be of type string instead of expected array.
This will result in a fatal error was being raised in AbstractProvider
when calling `prepareAccessTokenResult` method, which expects an
argument of type array.

Proposed solution is to set the variable `$result` to an empty array if
json_decode was not successful.

Doesn't make sense to throw an expection at this point, because response
will not have an access_token and an `InvalidArgumentException` will be
thrown latter when `$grant->handleResponse()` will be called.

Fix #230
2015-03-11 13:44:02 +02:00
..
Entity Fix UserTest.php namespace 2015-01-08 20:17:22 +09:00
Exception Fixing broken test and renamed tests for clarity 2015-03-10 16:02:39 -05:00
Grant remove unused assertions 2014-12-01 08:03:06 +01:00
Provider [Fix] Invalid JSON in response trigger fatal error 2015-03-11 13:44:02 +02:00
Token fix cs 2014-12-01 08:05:26 +01:00