CodeExplorer executeBeforeTest example
$_SERVER =
$this->serverVarsBackup;
$_ENV =
$this->envVarsBackup;
Feature::
resetRegisteredFeatures();
Feature::
registerFeatures($this->featureConfigBackup
);
} public function testAllFeatureFlagsAreActivated(): void
{ $_SERVER['V6_5_0_0'
] = false;
$this->extension->
executeBeforeTest(__METHOD__
);
static::
assertTrue(Feature::
isActive('v6.5.0.0'
));
$this->extension->
executeAfterTest(__METHOD__, 0.1
);
static::
assertArrayHasKey('V6_5_0_0',
$_SERVER);
static::
assertFalse($_SERVER['V6_5_0_0'
]);
} public function testIsDoesNotAffectNonPureUnitTests(): void
{