Laravel - Run a Single Test in PHPUnit

Today I wanted to share a quick snipped on how to run a single test in Laravel with PHPUnit.

vendor/bin/phpunit --filter SearchTest

As you see you can use the filter flag to run a single test from filename.

Hope this helped!

Load 0 Comments