phpunit --filter methodName ClassName path/to/file.php
# For newer versions of phpunit, it is just:
phpunit --filter methodName path/to/file.php
with docker compose:
docker compose exec app php artisan test --filter <method_name>
without docker compose:
php artisan test --filter <method_name>
phpunit <testName> (https://gitlab.com/MirikAkhmedov);