I have a few genuine constants that I would like to use in Zend Framework. I know I can set them in the index.php but this is not executed when running PHPUnit tests. (Not in this case, anyhow).

How else can I set these within the framework? The problem is that constants need to be declared outside the class. (I don't want class constants).

If all else fails, I can set them in my unit testing bootstrap, but I'd like to avoid the duplication if possible.