Fonte oficial no Laravel
AttributeIlluminate\Foundation\Testing\Attributes\SetUp

#[SetUp]

Atributo para configurar o setup de testes no grupo Foundation / Testing.

Disponível desde

Laravel 13.0

Aplicável em

method

Parâmetros

Nenhum parâmetro obrigatório ou opcional.

Uso prático

use Illuminate\Foundation\Testing\Attributes\SetUp;

#[SetUp]
class TestService {
    // Test setup
}