Closed swissspidy closed 5 years ago
Could we require users to add the PHPUnit dependency to their project in composer.json
instead?
A simple fix would be to check for an existing phpunit
executable here before doing any install:
as we do here already:
Thougts?
Actually, the whole thing here might no longer be necessary:
since we're already installing PHPunit during install_tools
:
which runs right after:
@kasparsd Checking for an existing binary from composer makes sense to me. Adding that would be a nice enhancement still.
WordPress core runs tests using PHPUnit 7, 6, or 4, depending on the PHP version:
https://github.com/WordPress/wordpress-develop/blob/1f1cf751e5130249ee06684399f001ae4479e650/.travis.yml#L62-L82
wp-dev-lib however uses PHPUnit 4 or 5, depending on PHP version:
https://github.com/xwp/wp-dev-lib/blob/d8207e7cf749eaba5de5fb45c49cf7408ba741b6/scripts/travis.install.sh#L11-L16
Is there any chance wp-dev-lib could use more up-to-date PHPUnit versions as well?