You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP Version: PHP 8.1.1 (cli) (built: Dec 15 2021 10:31:43) (ZTS Visual C++ 2019 x64)
Zend Engine v4.1.1, Copyright (c) Zend Technologies
with Xdebug v3.1.2, Copyright (c) 2002-2021, by Derick Rethans
Collision: ^6.0
Note: I opened this issue in Laravel Framework #40714, but they told me to open it here.
Description:
At the end of the tests execution, If file phpunit.xml is configured to generate a report, the following error is being thrown, causing the suite to fail, even though all tests have passed.
Target [Illuminate\Contracts\Broadcasting\Factory] is not instantiable
This behavior does not occur in Laravel 8.x, only in 9.x.
Command & output
$ php artisan test
PASS Tests\Unit\ExampleTest
✓ that true is true
PASS Tests\Feature\ExampleTest
✓ the application returns a successful response
Tests: 2 passed
Time: 0.40s
Target [Illuminate\Contracts\Broadcasting\Factory] is not instantiable.
Steps To Reproduce:
Create a fresh Laravel 9.x application
Add the following configuration in phpunit.xml file (the report part).
Laravel Version: 9.x
PHP Version: PHP 8.1.1 (cli) (built: Dec 15 2021 10:31:43) (ZTS Visual C++ 2019 x64)
Zend Engine v4.1.1, Copyright (c) Zend Technologies
with Xdebug v3.1.2, Copyright (c) 2002-2021, by Derick Rethans
Collision: ^6.0
Note: I opened this issue in Laravel Framework #40714, but they told me to open it here.
Description:
At the end of the tests execution, If file
phpunit.xml
is configured to generate a report, the following error is being thrown, causing the suite to fail, even though all tests have passed.This behavior does not occur in Laravel 8.x, only in 9.x.
Command & output
Steps To Reproduce:
php artisan test
If you follow the steps above, in Laravel 8 there won't be the error, but in Laravel 9 there will be.
The text was updated successfully, but these errors were encountered: