I'd like to use PHPUnit to test my Symfony 2 applications. I added PHPUnit to my Symfony 2 project composer.json file as described in the documentation:
"require": {
...
"phpunit/phpunit": "3.7.*"
},
How can I call PHPUnit now to run tests? I tried to run it via
$ php /path/to/symfony2app/vendor/phpunit/phpunit.php
but I get the following error message:
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
I guess it is a problem with PEAR missing, but shouldn't PEAR be a dependency in PHPUnit and be installed via composer update?