Ejemplo n.º 1
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testPortSettingThrowsExceptionWhenStringValue()
 {
     $port = 'fred';
     $this->dbData->setPort($port);
 }
Ejemplo n.º 2
0
 /**
  * @param LeDbData $data
  * @param LeDbTypeEnum $leDbEnum
  * @throws Exception
  */
 private function saveData(LeDbData $data, LeDbTypeEnum $leDbEnum)
 {
     $this->loadData();
     $formattedData = ['server' => $data->getServer(), 'dbName' => $data->getDbName(), 'userName' => $data->getUserName(), 'password' => $data->getPassword(), 'port' => $data->getPort()];
     $this->setDbData($data, $leDbEnum, $formattedData);
     $this->write();
 }