title: Fatal error: Class 'ZipArchive' - not found when using PHPUnit
body: <p>I have refactored some PHP code and putting it through a series of PHPUnit classes. </p>
  
  <p>I get the above Fatal Error when running PHPUnit (3.7.28) on it (through console). </p>
  
  <p>PHP version is 5.4.6-1ubuntu1.4 (cli).</p>
  
  <p>I know the Zip class is working and available as it works when running the code normally (also via console)</p>
  
  <p>Thoughts / ideas appreciated.</p>
  
  <p>Thanks!</p>
  
  <pre><code>&lt;?php
  
  namespace phpUnit\Test;
  
  Class MyTest extends \PHPUnit_Framework_TestCase
  {
  Public Function setUp()
      {
      $this-&gt;zip = new ZipArchive();
      }
  }
  </code></pre>