How to fix the denied permission when running provider / bin / phpunit in a laravel project


RT,whenever I execute vendor/bin/phpunit in root path of my laravel project, it gives back a :Permission denied,how can I fix this problem? important: I don't want to use composer update or delete some or all the vendor/ dir then use composer install ,these methods will change too much files, which my master will not agree,so WHO can give me a hand?

ps: lrwxrwxrwx 1 work work 26 Jul 21 07:10 phpunit -> ../phpunit/phpunit/phpunit

-rwxrwxrwx 1 work work 1199 Jul 22 08:19 ./vendor/phpunit/phpunit/phpunit

and chmod 775 -R vendor doesn't work

What you should do is call with php:

$ php ./vendor/bin/phpunit
PHPUnit 4.8.35 by Sebastian Bergmann and contributors.

Hi got the same error tying to execute it without php interpreter:

$ ./vendor/bin/phpunit
bash: ./vendor/bin/phpunit: Permission denied

Hope this helps you.