title: Cannot redeclare class error with CodeCoverage and Composer
body: <p>I'm getting an error with PHPUnit Code_Coverage when using Composer's autoload.php as the bootstrap file. I've created my own boostrap.php file and simply include each file individually and everything works fine. Have I stumbled onto a Composer bug, or am I making an error somewhere?</p>
  
  <p>// Edit: I'm using the newest (to-date) versions of everything: PHPUnit 3.7.12, Code_Coverage 1.2.7, Composer b51a4a7</p>
  
  <pre><code>Fatal error: Cannot redeclare class C3\CDN\EdgeCast in /Users/kperrine/Projects/edgecast-custom-reports/src/C3/CDN/EdgeCast.php on line 11
  
  Call Stack:
      0.0017     641760   1. {main}() /Applications/MAMP/bin/php/php5.3.14/bin/phpunit:0
      0.2232    1111312   2. PHPUnit_TextUI_Command::main() /Applications/MAMP/bin/php/php5.3.14/bin/phpunit:46
      0.2232    1112040   3. PHPUnit_TextUI_Command-&gt;run() /Applications/MAMP/bin/php/php5.3.14/lib/php/PHPUnit/TextUI/Command.php:129
      0.3027    4636952   4. PHPUnit_TextUI_TestRunner-&gt;doRun() /Applications/MAMP/bin/php/php5.3.14/lib/php/PHPUnit/TextUI/Command.php:176
     21.5764    6604032   5. PHP_CodeCoverage_Report_HTML-&gt;process() /Users/kperrine/Projects/edgecast-custom-reports/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php:384
     21.5764    6604240   6. PHP_CodeCoverage-&gt;getReport() /Users/kperrine/Projects/edgecast-custom-reports/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML.php:120
     21.5768    6663512   7. PHP_CodeCoverage_Report_Factory-&gt;create() /Users/kperrine/Projects/edgecast-custom-reports/vendor/phpunit/php-code-coverage/PHP/CodeCoverage.php:158
     21.5769    6663512   8. PHP_CodeCoverage-&gt;getData() /Users/kperrine/Projects/edgecast-custom-reports/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Factory.php:64
     21.5769    6663512   9. PHP_CodeCoverage-&gt;addUncoveredFilesFromWhitelist() /Users/kperrine/Projects/edgecast-custom-reports/vendor/phpunit/php-code-coverage/PHP/CodeCoverage.php:190
     21.5769    6664408  10. PHP_CodeCoverage-&gt;processUncoveredFileFromWhitelist() /Users/kperrine/Projects/edgecast-custom-reports/vendor/phpunit/php-code-coverage/PHP/CodeCoverage.php:535
     21.5778    6757272  11. include_once('/Users/kperrine/Projects/edgecast-custom-reports/src/C3/CDN/EdgeCast.php') /Users/kperrine/Projects/edgecast-custom-reports/vendor/phpunit/php-code-coverage/PHP/CodeCoverage.php:558
  </code></pre>
  
  <p>My phpunit.xml is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;phpunit backupGlobals="false"
           backupStaticAttributes="false"
           bootstrap="vendor/autoload.php"
           colors="true"
           convertErrorsToExceptions="true"
           convertNoticesToExceptions="true"
           convertWarningsToExceptions="true"
           processIsolation="false"
           stopOnFailure="false"
           syntaxCheck="false"
  &gt;
      &lt;testsuites&gt;
          &lt;testsuite name="C3 EdgeCast Tests"&gt;
              &lt;directory&gt;./tests/&lt;/directory&gt;
          &lt;/testsuite&gt;
      &lt;/testsuites&gt;
  
      &lt;filter&gt;
          &lt;whitelist processUncoveredFilesFromWhitelist="true"&gt;
              &lt;directory suffix=".php"&gt;src&lt;/directory&gt;
          &lt;/whitelist&gt;
      &lt;/filter&gt;
  
      &lt;logging&gt;
          &lt;log type="coverage-html" target="log/report" charset="UTF-8"
              highlight="false" lowUpperBound="35" highLowerBound="70"/&gt;
      &lt;/logging&gt;
  &lt;/phpunit&gt;
  </code></pre>