title: Zend_Loader Vs Autoloader with Zend_Test and PHPUnit
body: <p>I am setting up testing with PHPUnit and Zend Framework and have a niggling issue with autoloading.</p>
  
  <p>Firstly, I'm not sure why I need to setup autoloading in my the phpunit bootstrap.php.  In the production environment, the index.php file isn't loading it?  (My test cases are extending Zend_Test_PHPUnit_ControllerTestCase).</p>
  
  <p>Secondly, I'm having difficulty replacing Zend_Loader with Zend_Loader_Autoload.</p>
  
  <p>If I use this code in my bootstrap...</p>
  
  <pre><code>require_once "Zend/Loader.php";
  Zend_Loader::registerAutoload();
  </code></pre>
  
  <p>... the tests run fine, but with a warning about Zend_Loader being deprecated.</p>
  
  <p>If I use this code, however...</p>
  
  <pre><code>require_once 'Zend/Loader/Autoloader.php';
  Zend_Loader_Autoloader::getInstance();
  </code></pre>
  
  <p>The tests can't find a library class and a fatal error results.</p>
  
  <p>In my application.ini I have the line autoloaderNamespaces[] = "CP_".  It seems that the Loader class can see it, but not the Autoloader class.  Curious...</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks!</p>