Swap 'urlencode' for 'rawurlencode' to prevent test failure
Swap 'urlencode' for 'rawurlencode' to prevent test failure

This error is due to different encoding schemes being used. urlencode changes
spaces to '+', rawurlencode changes spaces to '%20'.

I believe  the league/oauth2-client package the QueryBuilderTrait switched from
'\PHP_QUERY_RFC1738' (plus sign encoding for spaces) to '\PHP_QUERY_RFC3986'
(percent encoding for spaces).

Example

Un-encoded:   58ac3fc62677f 58ac3fc6267a3
urlencode:    58ac3fc62677f+58ac3fc6267a3
rawurlencode: 58ac3fc62677f%2058ac3fc6267a3

stevenmaguire/oauth2-zendesk