Tests for constants and Server/Manager execute methods

https://jira.mongodb.org/browse/PHP-1123
By "debug hook", do you mean something internal that alters what `var_dump()` receives?

A utility function to dump a cursor or collection would probably be best. As we discussed earlier, we should get into the business of asserting the state of a collection after our tests.