public function isSatisfiedBy(Player $player)
 {
     return $player->isBank() && $player->getScore() >= self::SCORE_LIMIT;
 }
 public function isSatisfiedBy(Player $player, $round)
 {
     return $player->isHuman() || $round != 1;
 }
Ejemplo n.º 3
0
 private function givenGameIsCreated(EventStream $eventStream, DiscardPile $discardPile, Player $human, Player $bank)
 {
     $eventStream->getUuid()->willReturn(Uuid::uuid1());
     $eventStream->getIterator()->willReturn(new \ArrayIterator(array(new GameCreated(array($human->getWrappedObject(), $bank->getWrappedObject()), $discardPile->getWrappedObject(), 2))));
     $this->loadFromEventStream($eventStream);
 }