unset($_ENV[MigrationStep::INSTALL_ENVIRONMENT_VARIABLE
]);
} protected function tearDown(): void
{ unset($_SERVER[MigrationStep::INSTALL_ENVIRONMENT_VARIABLE
]);
unset($_ENV[MigrationStep::INSTALL_ENVIRONMENT_VARIABLE
]);
} public function testInstallEnvironmentNotSet(): void
{ $migration =
new ExampleMigration();
static::
assertFalse($migration->
isInstallation());
} public function testInstallServerVariableSetTrue(): void
{ $_SERVER[MigrationStep::INSTALL_ENVIRONMENT_VARIABLE
] = true;
$migration =
new ExampleMigration();
static::
assertTrue($migration->
isInstallation());
}