Laravel - understand how testing works Laravel - understand how testing works laravel laravel

Laravel - understand how testing works


This is a known bug within Laravel when using a later version of PHPUnit. I believe this bug still hasn't been fixed;

https://github.com/laravel/framework/issues/10808

In the meantime, there's some workarounds below;

1) Instead of using the global PHPUnit, use *project*/vendor/bin/phpunit.

2) Downgrade your version of PHPUnit so that Laravel is compatible with it, to do this, run the below commands;

composer global remove phpunit/phpunitcomposer global require 'phpunit/phpunit=~4.0'

Hope this helps.