PHP-475: Functional tests for read preference exceptions
Merge pull request #413