Official Laravel source
AttributeIlluminate\Foundation\Testing\Attributes\SetUp

#[SetUp]

Attribute to configure the setup for tests in the Foundation / Testing group.

Available since

Laravel 13.0

Targets

method

Parameters

Nenhum parâmetro obrigatório ou opcional.

Practical usage

use Illuminate\Foundation\Testing\Attributes\SetUp;

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