/** * @param PlayerInterface $player * * @return array */ private function getExpectedPlayerArray(PlayerInterface $player) { return ['color' => $player->getColor(), 'name' => $player->getName(), 'captures' => $this->getExpectedCapturesArray($player->getCaptures()->toArray()), 'human' => $player->isHuman()]; }