Beispiel #1
0
 protected function getPlayer($id, $name)
 {
     $player = new Player();
     $player->setId($id);
     $player->setName($name);
     return $player;
 }
Beispiel #2
0
 public function testGetArrayCopy()
 {
     $this->player->setId(2);
     $this->player->setName("Bar");
     $this->assertEquals(array('id' => 2, 'name' => 'Bar', 'points' => 1000, 'matchCount' => 0), $this->player->getArrayCopy());
 }