I'm trying to update my phpunit version, however it doesn't seem to be working with the regular composer install.
My composer.json file is as follows:
{
"require": {
...
},
"require-dev": {
"phpunit/phpunit": "4.*",
"phpunit/php-invoker": "^1.1",
"phpunit/dbunit": "^2.0"
}
}
And running both composer install and update as php composer.phar install and php composer.phar update (I don't have composer installed globally which might be the issue?) I get
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
When I check to see the phpunit version, I get
$ phpunit --version
PHPUnit 3.7.28 by Sebastian Bergmann.
My PHP version is 5.6 which does seem to rule out the solution from this very similar issue.
My best guess is that there is a global version of phpunit installed and overriding my local one. But I haven't been able to find any guidance as to how to fix this without making too many changes to the rest of the global environment.
phpunitinstalled, which you'd have to upgrade outside of your repo/Composer. The one installed by Composer lives atvendor/bin/phpunit(which you can use directly, if you like).phpunitinstead? Thanks in advance.vendor/bin/phpunitinstead ofphpunitin your commands (presuming you're alreadycded into the repository).vendor/bin/phpunit --versionetc./vendor/phpunit/phpunit/phpunitwhere I couldn't execute fromvendor/bin/phpunit, but after adjusting those permissions, I can run it fine now. Thanks!