basho/riak-php-client — pull request #21 by massung (2012-01-05 22:05:17+00:00)
Title: Fix the 2i unit test

If eleveldb isn't selected as the backend, 2i is disabled and the server will return a 500 on the unit test for 2i. Added a quick exception check at the top of the test to see if that happens, and we get back the magic text along with the 500 indicating that 2i is disabled.

Note: this required making the populate() function return the body of the response in the exception along with the HTTP return code.