/** * @param Player $a * @param Player $b * * @return bool */ public static function compareAverageSkill(Player $a, Player $b) { return $a->getSkillAverage() < $b->getSkillAverage(); }
public function testAverage() { $this->setUpPlayer(50, 70); $this->assertEquals(60, $this->player->getSkillAverage()); }