Use $_SERVER to compare environment variables in tests

Fixes reactphp/react#302
Merge branch 'refs/heads/env-vars'