title: Zend Framework + PHPUnit + Netbeans
body: <p>I am hardly struggling against problem I experience for last two days.
  In fact I can not run test properly and receive:</p>
  
  <blockquote>
    <p>PHP Fatal error:  Call to undefined function Zend_Application() in
    C:\xxxxxx\tests\application\controllers\IndexControllerTest.php on
    line 10</p>
  </blockquote>
  
  <p>IndexControllerTest is very simple and looks like this:</p>
  
  <pre><code>require_once 'Zend/Test/PHPUnit/ControllerTestCase.php';
  
  
  class IndexControllerTest extends Zend_Test_PHPUnit_ControllerTestCase
  {
  
      public function setUp()
      {   
          $this-&gt;bootstrap = Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini');
          parent::setUp();
      }
  
      public function appBootstrap() {
          $this-&gt;application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini');
          $this-&gt;application-&gt;bootstrap();
      }  
  ...
  </code></pre>
  
  <p>On the other hand bootstrap for tests contains only following code:</p>
  
  <pre><code>// Define path to application directory
  defined('APPLICATION_PATH')
      || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application')); //   /../application
  
  // Define application environment
  defined('APPLICATION_ENV')
      || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'testing'));
  
  // Ensure library/ is on include_path
  set_include_path(implode(PATH_SEPARATOR, array(
      realpath(APPLICATION_PATH . '/../library'),
      get_include_path(),
  )));
  
  require_once 'Zend/Loader/Autoloader.php';
  Zend_Loader_Autoloader::getInstance();
  </code></pre>
  
  <p>Could you please help me with finding a problem? I would like to increase quality of mini project i indend to start but without testing it won't be possible.</p>
  
  <p>Thank you in advance.</p>
  
  <hr>
  
  <p><img src="https://i.stack.imgur.com/k1iD4.png" alt="structure"></p>
  
  <p>I added directories structure for my project. I keep zend libs in Source Files/library/Zend. </p>