Laravel - Getting Started - Parallel Testing Hooks
Occasionally, you may need to prepare certain resources used by your application's tests so they may be safely used by multiple test processes.
ParallelTesting facade, you may specify code to be executed on the
tearDown of a process or test case. The given closures receive the
$testCase variables that contain the process token and the current test case, respectively: