Fixed #891

Better messages when JSON-related assertions receive invalid JSON.
Fixed #889

Suppress `open_basedir` warnings while searching for the composer autoloader.
Merge branch '3.7'
Don't cover removed method.
Merge branch '3.7'