Use $_SERVER to compare environment variables in tests

Fixes reactphp/react#302