in case of phpunit executions calling header() and exit() is too bad