/** * Installs deployment configuration * * @param \ArrayObject|array $data * @return void */ public function installDeploymentConfig($data) { $this->checkInstallationFilePermissions(); $data[InstallConfig::KEY_DATE] = date('r'); $configs = [$this->createBackendConfig($data), $this->createDbConfig($data), $this->createEncryptConfig($data), $this->createInstallConfig($data), $this->createSessionConfig($data), new ResourceConfig(), $this->createModulesConfig($data)]; $this->deploymentConfigWriter->create($configs); }
/** * @expectedException \InvalidArgumentException * @expectedExceptionMessage An instance of SegmentInterface is expected */ public function testCreateException() { $this->object->create(['some_bogus_data']); }