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