Пример #1
0
 function testProperties()
 {
     $user = new eCamp\Entity\User();
     $user->setScoutname('ScoutName');
     $this->assertEquals('ScoutName', $user->getScoutname());
     $user->setFirstname('FirstName');
     $this->assertEquals('FirstName', $user->getFirstname());
 }
Пример #2
0
 public function grabData(eCamp\Entity\User $user)
 {
     $user->setScoutname($this->getValue('scoutName'));
     $user->setFirstname($this->getValue('firstName'));
     $user->setSurname($this->getValue('surName'));
 }