title: Disable SSL when unit testing
body: <p>I have that code in my AppController which enables the SSL for the applicaiton only when it's not in debug mode. </p>
  
  <pre><code>public function beforeFilter(Event $event)
      {
  
  
          if (!Configure::read('debug')) {
              $this-&gt;Security-&gt;requireSecure();
          }
      }
  </code></pre>
  
  <p>I want to disable the SSL when I am executing uni tests.</p>
  
  <p>I tried to define a bool constant in bootstrap file of PHPUnit and then check if it's true in AppController, but unfortunately can't access constants defined from phpunit/bootstrap outside of phpunit. </p>
  
  <p>Any suggestions ? </p>