I've just started to use PHPUnit, but I've run into a bit of a snag.
My code uses $_SERVER['DOCUMENT_ROOT'] to compute paths for includes, which works when my apache server is the one running PHP, but DOCUMENT_ROOT is not set when I run phpunit from the command line with "phpunit Tests", so these includes don't work.
Am I missing something in the configuration of PHPUnit? Should it somehow be integrated with apache?