示例#1
0
 function testSetClanInfo()
 {
     $clan = new Clan();
     $clan->setFounder('randomFounder');
     $clan->setName('AwesomeClan');
     $this->assertEquals('randomFounder', $clan->getFounder());
     $this->assertEquals('AwesomeClan', $clan->getName());
 }
示例#2
0
 /**
  * Create the flesh of an npc from it's data
  **/
 public static function fleshOutFromData($data, Clan $clan)
 {
     $clan->setId($data['clan_id']);
     $clan->setName($data['clan_name']);
     $clan->setAvatarUrl($data['clan_avatar_url']);
 }