11 $pw = $this->config->getPassword();
12 return hash(
"sha256", implode(
"-", [
14 $this->config->getHost(),
15 $this->config->getPort(),
16 $this->config->getUser(),
17 $pw ? $pw->toString() :
""
23 return "The database server is connectable with the supplied configuration.";
39 $db->initFromIniFile($this->config->toMockIniFile());
41 $connect = $db->connect();
42 }
catch (PDOException
$e) {
45 if (
$e->getCode() != 1049) {
53 "Database cannot be reached. Please check the credentials."
An exception for terminatinating execution or to throw for unit testing.
Signals that some goal won't be achievable by actions of the system ever.
static getWrapper($a_type)
getPreconditions(Setup\Environment $environment)
achieve(Setup\Environment $environment)
An environment holds resources to be used in the setup process.