I copied this from phpunit as it seems to be a pretty sane way of handling this.  I just used a constant for the benefits it provides if you need the value elsewhere.