Example #1
0
 /**
  * Tests Configuration::setDebug
  */
 public function testDebug()
 {
     $conf = new Configuration();
     $conf->setFilename('/tmp/foo.xml');
     $this->assertEquals(false, $conf->getDebug());
     $conf->setDebug(true);
     $this->assertEquals(true, $conf->getDebug());
 }
Example #2
0
 /**
  * @return Configuration
  */
 public function getUpdatedObject()
 {
     $clone = new Configuration();
     $clone->setAdministrationGroup($this->getAdministrationGroup());
     $clone->setElectionManagerGroup($this->getElectionManagerGroup());
     $clone->setPollManagerGroup($this->getPollManagerGroup());
     $clone->setPluginPid($this->getPluginPid());
     $clone->setNumberOfMails($this->getNumberOfMails());
     $clone->setFromEmail($this->getFromEmail());
     $clone->setFromName($this->getFromName());
     $clone->setDebug($this->isDebug());
     $clone->setTestEmail($this->getTestEmail());
     return $clone;
 }