PHP-1068: Test that CommandResult is iterable

https://jira.mongodb.org/browse/PHP-1068

Use ping instead of isMaster since the result document is more predictable.