zendframework/zf2 — pull request #2675 by weierophinney (2012-10-04 14:40:54+00:00)
Title: Hotfix/composer phpunit

This PR suggests using PHPUnit via composer. This would help us pin PHPUnit on specific versions both in terms of usage with Travis-CI as well as for individual collaborators.

Currently, there are reported issues with using PHPUnit via composer due to autoloader conflicts:

- https://github.com/sebastianbergmann/phpunit/issues/660

As a result, this PR uses `EHER/PHPUnit`, which is from the following repository:

- https://github.com/EHER/phpunit-all-in-one

It provides the latest 3.6 series of PHPUnit, which is what we're currently using in ZF2 anyways. Once the autoloading issues have been straightened out and we can use the official PHPUnit packages, we can update the composer.json.

Usage is:

- php composer.phar install --dev
- in tests: ../vendor/bin/phpunit ZendTest/SomeComponent
- in tests: php run-tests.php

(I altered run-tests.php to use the vendor PHPUnit by default.)