title: Using PHPUnit as Symfony 2 dependency
body: <p>I'd like to use PHPUnit to test my Symfony 2 applications. I added PHPUnit to my Symfony 2 project <code>composer.json</code> file as described in the <a href="http://www.phpunit.de/manual/3.7/en/installation.html#installation.composer" rel="nofollow">documentation</a>:</p>
  
  <pre><code>"require": {
          ...
          "phpunit/phpunit": "3.7.*"
      },
  </code></pre>
  
  <p>How can I call PHPUnit now to run tests? I tried to run it via </p>
  
  <pre><code>$ php /path/to/symfony2app/vendor/phpunit/phpunit.php
  </code></pre>
  
  <p>but I get the following error message:</p>
  
  <pre><code>Warning: require_once(File/Iterator/Autoload.php): failed to open stream: No such file or directory in C:\...\vendor\phpunit\phpunit\PHPUnit\Autoload.php on line 45
  
  Fatal error: require_once(): Failed opening required 'File/Iterator/Autoload.php' (include_path='.;\...\xampp\php\PEAR') in C:\...\vendor\phpunit\phpunit\PHPUnit\Autoload.php on line 45
  </code></pre>
  
  <p>I guess it is a problem with PEAR missing, but shouldn't PEAR be a dependency in PHPUnit and be installed via <code>composer update</code>?</p>