/** @param string $name */ public function __construct($name) { $this->id = null; $this->name = $name; $this->state = State::getInitialState(); $this->initializePlayers(); $this->currentTurn = null; }
public function testInitialStateIsReady() { $state = State::getInitialState(); $this->assertTrue($state->isEqual(new State(State::READY))); }