Beispiel #1
0
 private function publishDomainEvents(Account $account)
 {
     iter\apply($this->handleEvent(), $account->recordedMessages());
     $account->eraseMessages();
 }
Beispiel #2
0
 private function publishDomainEvents(Player $player)
 {
     iter\apply($this->handleEvent(), $player->recordedMessages());
     $player->eraseMessages();
 }
Beispiel #3
0
 /**
  * @Then /^should exists accounts:$/
  */
 public function shouldExistsAccounts(TableNode $accounts)
 {
     iter\apply($this->ensureExpectedAccount(), $accounts);
 }
Beispiel #4
0
 /**
  * @Given /^there are registered players:$/
  */
 public function thereAreRegisteredPlayers(TableNode $players)
 {
     iter\apply($this->registerPlayer(), $players);
 }