Currently php artisan test doesn't display PHPUnit Errors or Deprecations, which can be quite important for seeing tests which are not running or failing due to an Error in a Data Provider for example.
This PR registeres the two additional Subscriber to listen for this events and display them in the console.
I created an example repository to show the issue:
You can see that the test y is not running in php artisan test but you would'nt know that.
You can also not see the deprecation like with vendor/bin/phpunit
To see the results of this PR you can do the following:
Fixes #271
Currently
php artisan test
doesn't display PHPUnit Errors or Deprecations, which can be quite important for seeing tests which are not running or failing due to an Error in a Data Provider for example.This PR registeres the two additional Subscriber to listen for this events and display them in the console.
I created an example repository to show the issue:
Setting up the repository
Output of
php artisan test
without this PR:Output of
vendor/bin/phpunit
:You can see that the test y is not running in
php artisan test
but you would'nt know that. You can also not see the deprecation like withvendor/bin/phpunit
To see the results of this PR you can do the following:
Output of
php artisan test
with this PR: