protected function getPlayer($id, $name) { $player = new Player(); $player->setId($id); $player->setName($name); return $player; }
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()); }