Skip to content

#[RequiresEnvironmentVariable] #6065

@nikophil

Description

@nikophil

Hello,

what do you think of adding a #[RequiresEnvVar] (or RequiresEnv?) attribute?

// would run the test if the env var is "truthy" #[RequiresEnvVar('SOME_ENV_VAR')] #[Test] public function some_test(){} // would run the test if the env var is strictly equals to 'foo' #[RequiresEnvVar('SOME_ENV_VAR', value: 'foo')] #[Test] public function some_other_test(){}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions