title: Override environment variable when running on Jenkins
body: <p>I'm testing a Zend Framework application using PHPUnit and Jenkins. I need to override the <code>APPLICATION_ENV</code> environment variable which is access using PHP's <code>getenv</code> in the PHPUnit <code>bootstrap.php</code> file:</p>
  
  <pre><code>&lt;?php
  
  // Define application environment
  defined('APPLICATION_ENV')
  || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'testing'));
  
  ... use APPLICATION_ENV to pick database, configuration, etc. ...
  </code></pre>
  
  <p>I have two environments: <code>testing</code> (for local machines) and <code>testing-ci</code> (for Jenkins machine). How can I set the variable to <code>testing-ci</code> when it runs in Jenkins? Is there any way to set it in <code>build.xml</code> for Ant or Phing?</p>