title: How to test every module in my application phpunit - zend framework 2
body: <p>I already made test for my application module and other module. They are working fine but i want to run all the test (application module and other module) toguether to generate clover report for jenkins. What should i do?? create another config file to invoke other config files??</p>
  
  <p>---edit---</p>
  
  <p>I have the same code for each module bootstrap.php  and i want to use the same for each module to avoid code duplication. Rigth now i have two modules Application and Problem when i run phpunit it throws me this error:</p>
  
  <pre><code>**.PHP Fatal error:  Class 'ProblemTest\Bootstrap' not found ....**
  </code></pre>
  
  <p>The test for the Application module works fine but the test for Problem module doesn't work for the namespace declaration in the <strong>phpunit_bootstrap.php</strong> file. </p>
  
  <p>My Application test uses this declaration:</p>
  
  <pre><code>&lt;?php
     namespace ApplicationTest\Controller;
     use ApplicationTest\Bootstrap; ....
  </code></pre>
  
  <p>My Problem tes uses this declaration:</p>
  
  <pre><code>&lt;?php
      namespace ProblemTest\Controller;
      use ProblemTest\Bootstrap;
  </code></pre>
  
  <p>This is my phpunit.xml</p>
  
  <pre><code>&lt;phpunit bootstrap="phpunit_bootstrap.php"&gt;
  &lt;testsuites&gt;
      &lt;testsuite name="ALL"&gt;
          &lt;directory&gt;module/Application/test&lt;/directory&gt;
          &lt;directory&gt;module/Problem/test&lt;/directory&gt;
      &lt;/testsuite&gt;
  &lt;/testsuites&gt;
  </code></pre>
  
  <p></p>
  
  <p>this is my phpunit_bootstrap.php</p>
  
  <pre><code>&lt;?php
   namespace ApplicationTest;
  </code></pre>
  
  <p>The problem that i have rigth now to run all the test toguether is how to include the same bootstrap for every test to avoid that exception.</p>