final class WithEnv implements Invokable

Sets an environment variable for the duration of a test.

Methods

__construct(string $key, string|null $value)

Construct a new attribute.

mixed
__invoke(Application $app)

Handle the attribute.

Details

at line 25
__construct(string $key, string|null $value)

Construct a new attribute.

Parameters

string $key
string|null $value

at line 36
mixed __invoke(Application $app)

Handle the attribute.

Parameters

Application $app

Return Value

mixed