Search code examples
zend-framework2phpunitcomposer-phppear

install phpUnit via pear or composer


I'm new to Zend Framework 2.0, after reading the documentation I know that we can install phpUnit via Pear or via composer ?

Please explain to me some differences between them, thank you


Solution

  • Use Composer. The main difference is that Composer installs phpunit within your application, whereas pear installs it on the server. The advantage of the composer approach is that you can have different versions of phpunit used by different applications.