WARN Your XML configuration validates against a deprecated schema. Migrate your XML configuration using "--migrate-configuration"!
PASS Tests\Unit\ExampleTest
✓ that true is true
Call to undefined method PHPUnit\TestRunner\TestResult\TestResult::numberOfTests()
Just a PHPUnit configuration change whenever we changed to PHPUnit v10, which you can resolve using the following command:
vendor/bin/phpunit --migrate-configuration
And in addition:
Furthermore, if you wish to use PHPUnit 10, you should delete the processUncoveredFiles attribute from the <coverage> section of your application's phpunit.xml configuration file. Then, update the following dependencies in your application's composer.json file:
'vendor' is not recognized as an internal or external command,
operable program or batch file.
while running this php artisan vendor/bin/phpunit --migrate-configuration getting error
ERROR Command "vendor/bin/phpunit" is not defined.
I'm running like this
Dell@DELL-NOTEBOOK c:\xampp\htdocs\testing
# vendor/bin/phpunit --migrate-configuration
'vendor' is not recognized as an internal or external command,
operable program or batch file.
Dell@DELL-NOTEBOOK c:\xampp\htdocs\testing
# php artisan vendor/bin/phpunit --migrate-configuration
ERROR Command "vendor/bin/phpunit" is not defined.