title: Unable to run phpunit since upgrade to Symfony 2.8/3.0
body: <p>Since upgrading to Symfony 2.8, I get the following error when I run <code>phpunit</code> in the Symfony root:</p>
  
  <pre><code>PHP Fatal error:  Class 'PHPUnit_Util_ErrorHandler' not found in /var/www/foo/symfony/vendor/symfony/phpunit-bridge/DeprecationErrorHandler.php on line 40
  PHP Stack trace:
  PHP   1. {main}() /usr/bin/phpunit:0
  PHP   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:46
  PHP   3. PHPUnit_TextUI_Command-&gt;run() /usr/share/php/PHPUnit/TextUI/Command.php:129
  PHP   4. PHPUnit_TextUI_Command-&gt;handleArguments() /usr/share/php/PHPUnit/TextUI/Command.php:138
  PHP   5. PHPUnit_Util_Configuration-&gt;getTestSuiteConfiguration() /usr/share/php/PHPUnit/TextUI/Command.php:657
  PHP   6. PHPUnit_Util_Configuration-&gt;getTestSuite() /usr/share/php/PHPUnit/Util/Configuration.php:789
  PHP   7. PHPUnit_Framework_TestSuite-&gt;addTestFiles() /usr/share/php/PHPUnit/Util/Configuration.php:873
  PHP   8. PHPUnit_Framework_TestSuite-&gt;addTestFile() /usr/share/php/PHPUnit/Framework/TestSuite.php:416
  PHP   9. PHPUnit_Util_Fileloader::checkAndLoad() /usr/share/php/PHPUnit/Framework/TestSuite.php:355
  PHP  10. PHPUnit_Util_Fileloader::load() /usr/share/php/PHPUnit/Util/Fileloader.php:76
  PHP  11. Symfony\Bridge\PhpUnit\DeprecationErrorHandler::Symfony\Bridge\PhpUnit\{closure}() /usr/share/php/PHPUnit/Util/Fileloader.php:92
  
  THE ERROR HANDLER HAS CHANGED!
  </code></pre>
  
  <p>This also occurs under Symfony 3.0. Should I now be running phpunit in a different manner?</p>