Exemple #1
0
 /**
  * @param Game $game
  */
 public function addGame(Game $game)
 {
     $game->setMatch($this);
     $this->games[] = $game;
 }
Exemple #2
0
 public function testMatchProperty()
 {
     $match = $this->getMock('Application\\Model\\Entity\\Match');
     $this->game->setMatch($match);
     $this->assertSame($match, $this->game->getMatch());
 }